Expand/Collapse (or Maximize/Minimize) JPanel
788872Apr 7 2009 — edited Apr 7 2009Hi,
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