showInputDialog public static Object showInputDialog(Component parentComponent, Object message, String title, int messageType, Icon icon, Object selectionValues, Object initialSelectionValue) throws HeadlessExceptionPrompts the user for input in a blocking dialog where the initial selection, possible selections, and all other options can be specified. The user will able to choose from selectionValues, <b><i>where null implies the user can input whatever they wish, usually by means of a JTextField.</i></b> initialSelectionValue is the initial value to prompt the user with. It is up to the UI to decide how best to represent the selectionValues, but usually a JComboBox, JList, or JTextField will be used.
The one in Bold says we can use Jtextfield.... How do I use JTextfield for the showInputdialog method in JOptionPane? Thanks again
The documentation says that when the selection array is null, the JOptionPane will USUALLY display a JTextField, but there is no way to either 1. guarantee that it will display a JTextField or 2. pass a JTextField in to be displayed. How about extending JDialog and putting whatever you want on it with whatever listeners you want?
If you do not mind can you just give me something to start... on JDialog... how to create a JDialog and the grab the text from the JDialog.. to my processing routines. thank you Joe for the previous reply!!!