Exemple #1
0
 public static void main(String[] args) {
   JFrame frame = new JFrame();
   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   final PasswordDialog addPassword = new PasswordDialog(frame);
   addPassword.setVisible(true);
   System.exit(0);
 }
Exemple #2
0
 public static String[] login(Object sender) {
   JFrame frame = new JFrame();
   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   final PasswordDialog addPassword = new PasswordDialog(frame);
   addPassword.setVisible(true);
   while (!set)
     try {
       Thread.sleep(5000);
     } catch (InterruptedException e) {
     }
   ;
   return info;
 }