• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get Table height in run time ?

 
vaibhav agarwal
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I make one Jtable in which data would be very in run time.. i have to find table height for this i am using table.setPreferedSize()..but it gives the static height of table... but i need actual height height which has been changed after filling data.. i wrote one renderer for change the table row height in run time according to data.. so how can i get i actual size of table after runnig the application....

thanks in advance

Vaibhav Gupta
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once the JTable is up and running 'getSize' should return an honest Dimension.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic