View Single Post
Old 08-16-2012, 05:35 PM   PM User | #5
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,650
Thanks: 4
Thanked 2,451 Times in 2,420 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Quote:
Originally Posted by dannyboi View Post
ANd what does this mean?
The signature for input dialog off of JOptionPane is:
Code:
public static String showInputDialog(Component, Object);
public static String showInputDialog(Component, Object, Object);
public static String showInputDialog(Component, Object, String, int);
Every one of these returns a string.

The final one:
Code:
public static Object showInputDialog(Component, Object, String, int, Icon, Object[], Object);
Returns an object. It's used for selections though, not direct input.
Fou-Lu is offline   Reply With Quote