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!

Height in JTable

843807Sep 13 2010 — edited Sep 14 2010
Hi !!!

is there a way to use "setPreferredScrollableViewportSize" but with an automatically height ? it means: when I use
"setPreferredScrollableViewportSize" I do something like this :
this.table.setPreferredScrollableViewportSize(new Dimension(625, 400));
But I want to know if is posible to change 400 (height) for an automatically value.

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2010
Added on Sep 13 2010
9 comments
173 views