aspose file tools*
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
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
Author

How to get Table height in run time ?

vaibhav agarwal
Greenhorn

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: http://aspose.com/file-tools
 
subject: How to get Table height in run time ?
 
Similar Threads
image width and height
JTable in a JViewport
Import from and export to Excel
How to find visible row count in JTable?
run sql file using JDBC