This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to get Table height in run time ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to get Table height in run time ?" Watch "How to get Table height in run time ?" New topic

How to get Table height in run time ?

vaibhav agarwal

Joined: May 06, 2005
Posts: 7
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

Joined: Jan 14, 2004
Posts: 1535
Once the JTable is up and running 'getSize' should return an honest Dimension.
I agree. Here's the link:
subject: How to get Table height in run time ?
It's not a secret anymore!