Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

dynamically changing row height of jtable cells with frame size

843805Dec 4 2005 — edited Dec 4 2005
hi,
i have a jtable with fixed number of rows and columns. by default i am setting row height of 60 and displaying the frame by packing it.

if the user resizes the frame then what i need is that the row heights and column widhts must be adjusted automatically such that the table covers the whole frame. by default column widths are being resized such that horizontally the whole table fills the frame.
But the row height is not being adjusted. though the height of rows can be changed through setRowHeight(value) method, i dont know what i have to give in place of value such that it automatically changes with the frame size. please give suggestions.

thanx
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2006
Added on Dec 4 2005
1 comment
343 views