| Author |
Setting an option window
|
Mohamed Desoky
Greenhorn
Joined: Sep 10, 2011
Posts: 1
|
|
Hi, I'm new I GUI programming, I'm using netbeans, and need help of getting Input from an option window.
My Idea is to make an options window that contains two combo-boxes , OK, and cancel buttons.
How can I return the input of this window the main window of the program, will it be a frame or dialog, don't Know.
Please help.
|
 |
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1788
|
|
Create a JPanel that contains the two combo boxes. Then you can add the panel to a JOptionPane.
See How to Make Dialogs for more information on using an option pane.
|
 |
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4165
|
|
Mohamed, we don't have too many rules here but we do ask that you BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/awt-swing/48843-help-designing-option-window.html
|
luck, db
There are no new questions, but there may be new answers.
|
 |
 |
|
|
subject: Setting an option window
|
|
|