Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Java Menus ???

Options
  • 07-02-2005 5:13pm
    #1
    Registered Users Posts: 101 ✭✭


    Just wondering about creating menus in java, where say you click a button on screen and it takes you to a different JPanel/JFrame ? Like would you just add a the new screen on top of the old one or would you open and close frames each time? I know an alternative would be to use a tabbed pane, just thought this way would look kinda neater.

    Anybody know what classes i should be looking up etc. about this or which is the handiest way?

    Cheers
    Enda


Comments

  • Closed Accounts Posts: 324 ✭✭madramor


    you have your mainframe
    and inside that you can have anything else you like
    so you could have 2 internal frames,a menu bar and a tool bar
    if somebody clicked on a menu bar button to do something
    you could remove the current panel from one of the internal frames
    and replace it with a different jpanel.


  • Registered Users Posts: 101 ✭✭enda_4


    Cheers madra, tried that one didn't pull it off to well though, going to go with the cardLayout now.

    Enda


Advertisement