How to program toggle-able JPanels?
April 10, 2006 12:32 PM Subscribe
Java question: how to program a toggle-view in a GUI?
posted by invitapriore to computers & internet (8 answers total)
Basically, I want to have two seperate JPanels that are the same size and occupy the same space in the frame, but only allow one to be visible at any time, so that the view can be toggled in between these two panels with a radio button. Using the glass pane seems to be out because it covers the menu bar, and I've had absolutely zero luck with getting the layered pane to work out, so I'm kind of stuck. Any help would be appreciated!