This discussion is archived
0 Replies Latest reply: Aug 28, 2008 6:18 AM by 843849 RSS

help with showInputDialog

843849 Newbie
Currently Being Moderated
Hi evreybody,
I need help to use "JOptionPane.showInputDialog()", I see the input dialog but when i press OK the method doesn't return nothing.

my code is
String a=JOptionPane.showInputDialog(getContentPane(),"");
after I press OK button the value of name is null.

Thank you for yours help.