I want to use JOptionPane to create a login window for my java class. I did find sample code at the java.sun.com site.
For example:
String name = JOptionPane.showInputDialog("Please input name: firstname lastname"
;
String passwrd = JOptionPane.showInputDialog("Please input password"
;
I run this barebone code (at the command line prompt)and get separate dialog boxes as expected but the code execution doesn't end at the command line prompt after I close all dialog boxes. I'm not sure what is going on behind the scene and would appreciate your help.
For example:
String name = JOptionPane.showInputDialog("Please input name: firstname lastname"
String passwrd = JOptionPane.showInputDialog("Please input password"
I run this barebone code (at the command line prompt)and get separate dialog boxes as expected but the code execution doesn't end at the command line prompt after I close all dialog boxes. I'm not sure what is going on behind the scene and would appreciate your help.