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!

Expand/Collapse (or Maximize/Minimize) JPanel

788872Apr 7 2009 — edited Apr 7 2009
Hi,

We have a JFrame that has many components like JComboBox, JTextArea etc. It also has a JPanel that contains a graph.

Now my requirement is to have expand/collapse button. When user clicks on expand, this JPanel with the graph should occupy the whole screen. At this point, the expand button would be replace with collapse button.

When user clicks on collapse, the JPanel should resume its original place and all other components should re-appear with correct state.

Can anyone help me with some pointers/resources?

Thanks in advance,

Regards,
Manu

Edited by: Manupriya on Apr 7, 2009 2:05 PM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2009
Added on Apr 7 2009
3 comments
943 views