Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Moving through frames via buttons in the style of a menu

  1. #1
    Junior Member
    Join Date
    Dec 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Moving through frames via buttons in the style of a menu

    Hi all, I'm having a bit of trouble and I'm hoping someone can help. I'm trying to develop a simple point of sale system that would work within frames. What I'm really trying to do is open a main frame that will exist throughout the program, and then "move" through menus by closing and opening new frames within this permanent frame. I have very little experience with GUIs so I'm having a hard time thinking this through. When I click on a button such as Employee Menu, I'd just like to close the previous menu and open the Employee frame to work within. Is this a smart way to go about it? Any advice or suggestions would be greatly appreciated.


  2. #2
    Grand Poobah
    Join Date
    Mar 2011
    Posts
    1,545
    My Mood
    Grumpy
    Thanks
    0
    Thanked 167 Times in 158 Posts

    Default Re: Moving through frames via buttons in the style of a menu

    Take a look at the CardLayout class.
    Improving the world one idiot at a time!

  3. The Following User Says Thank You to Junky For This Useful Post:

    KevinWorkman (December 5th, 2011)

Similar Threads

  1. Is it possible to use card layout for menu and menu items?
    By jai2rul in forum AWT / Java Swing
    Replies: 0
    Last Post: April 11th, 2011, 08:19 AM
  2. NetBeans-style GUI
    By susieferrari in forum Java Theory & Questions
    Replies: 7
    Last Post: March 31st, 2011, 09:40 AM
  3. Noob that needs some clearing up with Java style programming
    By looneylu in forum Java Theory & Questions
    Replies: 3
    Last Post: January 23rd, 2011, 11:27 PM
  4. Trying to achieve Movie Style Rolling Credits
    By javanoob123 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: January 10th, 2011, 08:02 PM
  5. GIF frames
    By vsector in forum AWT / Java Swing
    Replies: 0
    Last Post: April 15th, 2010, 05:25 PM