File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Setting an option window

 
Mohamed Desoky
Greenhorn
Posts: 1
Eclipse IDE Java Netbeans IDE
  • 0
  • 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: 2475
8
  • 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: 5115
11
Java Netbeans IDE Opera
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic