I'm looking to create a java app with a gui. I would like to have several "pages" that will fill in a central area and easily swap them out for another.
I was trying to use a single JFrame as the main window, and then have several panels that would encompass the entire JFrame and have separate functions and all. I would want the Main Jframe to retain its size and position on screen when switching from one panel to another as well. Any one able to offer help on this?
01-21-2006, 03:18 PM
lokelo
Ok, I think I may have figured out how to do what I want to do. I replaced the content pane with another pane. Is this how I should do this? Thanks for the Input!
01-21-2006, 10:59 PM
major
Hi, I recently made a program the way you mentioned. I have my buttons on the left and my jpanel on the right, I then had serveral jpanels and all I did was to hide all other jpanels except for the one I wanted to see.
You said you wanted to make a GUI app, have a look at some of the sampled at www.java.codeyourself.com, not many examples yet, but a few GUI examples are available. Hopefully with more support we should get more in but we rely on users to submit small programs/examples. If you have any small working examples plz do submit them as your work could help other people. All links are in my signature.