Results 1 to 5 of 5
Thread: Gui to JOptionPane Sub-Menu
- 03-27-2010, 08:37 PM #1
Member
- Join Date
- Mar 2010
- Posts
- 2
- Rep Power
- 0
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.....
- 03-28-2010, 04:31 PM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Did you read the Java DOC about JOptionPane?
JOptionPane (Java 2 Platform SE v1.4.2)
Read on all the constructors, then you can find the solution.
- 03-28-2010, 04:55 PM #3
Member
- Join Date
- Mar 2010
- Posts
- 2
- Rep Power
- 0
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 uLast edited by kevinboey; 03-28-2010 at 05:10 PM.
- 03-29-2010, 01:29 AM #4
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Okay, did you find the JOptionPane initialization in your code? Can you post it here?
- 03-29-2010, 04:30 AM #5
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
-
JOptionPane
By Mir in forum New To JavaReplies: 5Last Post: 11-29-2008, 02:04 AM -
Fill a menu dynamically when menu is shown
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:47 PM -
How to use SWT menu and menu event
By Java Tip in forum SWTReplies: 0Last Post: 07-07-2008, 04:46 PM -
React to menu action and checkbox menu
By Java Tip in forum javax.swingReplies: 0Last Post: 06-27-2008, 07:50 PM -
how to create Popup Menu with Sub Menu while right-clicking the JTree Node??
By Kabiraa in forum AWT / SwingReplies: 7Last Post: 05-09-2008, 07:54 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks