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 resizing a jpanel

843806Feb 29 2008 — edited Feb 29 2008
i have a Jframe. at first i add a panel say panel 1 to it.When a button in panel 1 is pressed another panel Panel2 is loaded.inside panel2 i have Jtable...My doubt is whether it is possible to set the size of jframe or panel2 depending on the size of jtable...i have used setSize() for frame and panel.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2008
Added on Feb 29 2008
4 comments
466 views