Skip to Main Content

Java Programming

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!

Best Way to Switch Between JPanels?

807589Oct 29 2008 — edited Oct 29 2008
Okay I have a JMenuBar in my Application, and on the click of a JMenuItem, I want to switch between panels in my program. Which is the easiest way to do this so that I dont have to use a new JFrame for each option. I just want to change the "active" JPanel. Similar to a JTabbedPane, but without the tabs, would rather navigate with a JMenuBar. Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 26 2008
Added on Oct 29 2008
9 comments
390 views