Results 1 to 5 of 5
  1. #1
    kevinboey is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default Gui to JOptionPane Sub-Menu

    Just to check with u guys I got a GUI Menu with few selections e.g. "Computer" , "Storage", "Transactions", "Exit" . When i click on "Computer" a JOptionPane Sub-Menu will pop up and i could add or sell . but when i want to go back to the Gui Menu i could not click on other options e.g. "Storage" while the JOptionPane Sub-Menu is still open and was force to click cancel to un-run then i can click on the "Storage" therefore, the things i have added earlier was gone.:confused::confused::confused:

    Is there anyway i can switch from GUI menu to sub-Menu and back to GUI Menu without un-run it because if i click cancel to un-run all the things added will be gone ......appreciate if anyone can help me..... Thank u Very much.....

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    kevinboey is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default

    Thank you for replying...... i did read up but i could not understand. :confused::confused::confused:

    any 1 knows? can help me coz its urgent and i tried many ways still i could not solve this problem......thank u
    Last edited by kevinboey; 03-28-2010 at 05:10 PM.

  4. #4
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  5. #5
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    I understand what you are doing, but it doesn't sound like it will do what you want. JOptionPane is designed to block Swing processing as long as it is displayed, and that is what it is doing.

    JMenu allows you to create sub-menus easily. See the tutorial.
    The Java Tutorial. Read it.

Similar Threads

  1. JOptionPane
    By Mir in forum New To Java
    Replies: 5
    Last Post: 11-29-2008, 02:04 AM
  2. Fill a menu dynamically when menu is shown
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 04:47 PM
  3. How to use SWT menu and menu event
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-07-2008, 04:46 PM
  4. React to menu action and checkbox menu
    By Java Tip in forum javax.swing
    Replies: 0
    Last Post: 06-27-2008, 07:50 PM
  5. Replies: 7
    Last Post: 05-09-2008, 07:54 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
  •