DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: Java GUI help

  1. #1
    Join Date
    Jan 2006

    Java GUI help

    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?

  2. #2
    Join Date
    Jan 2006
    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!

  3. #3
    Join Date
    Mar 2005
    UK, London
    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.

Similar Threads

  1. Java vs. .Net. A questionnaire
    By Basil in forum .NET
    Replies: 1
    Last Post: 05-13-2005, 06:46 AM
  2. DevX does seem one sideded
    By Rob Abbe in forum Talk to the Editors
    Replies: 44
    Last Post: 01-13-2003, 02:57 PM
  3. learning c# very confusing.
    By Mike Tsakiris in forum .NET
    Replies: 11
    Last Post: 10-04-2002, 05:32 PM
  4. Java vs Windows GUI? //Patrick Meader's commentary in April VBPJ
    By Joe \Nuke Me Xemu\ Foster in forum Architecture and Design
    Replies: 0
    Last Post: 03-16-2001, 10:02 PM
  5. Re: VB vs. Visual Age for Java
    By JJ in forum Enterprise
    Replies: 1
    Last Post: 07-06-2000, 04:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.