Custom input from user
I'd like to program a dialog box which I can customise so i can have a text box for input, a combo box, and a few buttons.
What is the best component to use for this purpose? I'm confused and not sure whether i can do this using a JDialog, JOptionPane, or JInternalFrame.
Any help will be much appreciated.
Thanks.
If you use a JDialog then you would need to build all the components and respond all the events from the buttons.
If you use a JOptionPane then you could build a panel containing you components, without the "Ok", and "Cancel" buttons and the JOptionPane would handle this for you. Read the [url http://java.sun.com/developer/JDCTechTips/]Beyond the Basics of JOptionPane[/url] for more information.
You would not use a JInternalFrame for this situation.