Name: vi73552 Date: 04/04/99
It would be nice to have a convenient way to show an InputDialog with a default value already entered.
This could be done with either of the following method signatures:
JOptionPane.showInputDialog(Object message, Object default)
JOptionPane.showInputDialog(Object message, String default)
Example usage:
String name = getLastNameUsed();
name = JOptionPane.showInputDialog("Enter name", name);
The default value should be selected when the dialog is shown, so that the user can type a new value to replace the default value without having to use the delete or backspace key to delete the default value first.
(Review ID: 56484)
======================================================================