Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
You might want to try using a JTabbedPane. Then you can create all your panels once and the user can flip between them. - mfg > More specifically, I have: JFrame mainWindow, which loads a JPanel containing the required buttons e.t.c. I set the context to be the JPanel and life is good. then when I press a button, I create a new JFrame (which is wrong I think), and set it's context to be my new panel. What I'd like to be able to do is display a selection of different panels from the main frame (or figure out how to dispose a frame from within a panel??
Replies: |
Sponsored Links
|