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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Java Menus ???

  • 07-02-2005 4:13pm
    #1
    Registered Users, Registered Users 2 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, Registered Users 2 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