File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to get Table height in run time ?
 
Similar Threads
image width and height
run sql file using JDBC
How to find visible row count in JTable?
Import from and export to Excel
JTable in a JViewport