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!

change the size of a Jpanel automatically ?

843806Apr 14 2009 — edited Apr 16 2009
hello,

I'm just wondering if there is a certain way to change the size of a Jpanel depending on the content of this Jpanel.
in other words, let's suppose we have a Jpanel to which i want to add buttons on the same line, so i want after a certain number of buttons for the Jpanel to augment its size so it can fit all the buttons.

thank you

Ralph.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 14 2009
Added on Apr 14 2009
11 comments
694 views