Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting an option window

 
Mohamed Desoky
Greenhorn
Posts: 1
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2616
9
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5148
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic