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!

Set the minimal size of a Component with BorderLayout

843806Dec 8 2007 — edited Dec 16 2007
Hi,

I got a little problem using BorderLayout.

The scenario is :

A JPanel placed BorderLayout.WEST got a size a few pixel too small for a JTable contained in this panel to paint all names of the table header.

If i set the preferredScrollableViewportSize larger then a specific amount the table disappear(shrinks to a tiny size)

The panel uses GridBagLayout...
How can i set the size of this "west"-component of the border layout a little larger?

regards

Olek
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2008
Added on Dec 8 2007
21 comments
1,148 views