Method showInputDialog(Object message, Object initialSelectionValue)
Return type: java.lang.String
Member of: javax.swing.JOptionPane
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 String searchStr = JOptionPane.showInputDialog(this, "Enter last name or group");
2 String rating = JOptionPane.showInputDialog(this, "Enter rating: ");
3 String strCatalogPattern = javax.swing.JOptionPane.showInputDialog(this, "Enter regular expression to filter catalogs (leave blank to get all catalogs, all catalogs will match the expression)");
4 String sLimit = JOptionPane.showInputDialog("Limit (e.g. 200, negative for all): ", "200");
5 String newName = JOptionPane.showInputDialog(this, "");
6 JOptionPane.showInputDialog(this, "Input Dialog");
7 String name = JOptionPane.showInputDialog(this, BasicUtilities.getString("Enter_Name_for_Bookmark"));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.