public LoginDialog(java.awt.Component parent){
  super((java.awt.Frame)SwingUtilities.getWindowAncestor(parent),true);
  initComponents();
  ModifiableJOptionPane.reverseOKCancel(loginButton,cancelButton);
  Preferences p=Preferences.userNodeForPackage(getClass());
  remember.setSelected(p.getBoolean("remeber",false));
  if (remember.isSelected()) {
    user.setText(p.get("user",""));
    password.setText(p.get("pass",""));
    globalUser=user.getText();
    globalPassword=user.getText();
  }
  initialized=true;
  setLocationByPlatform(true);
  pack();
  setVisible(true);
}

public LoginDialog ( java . awt . Component parent ) { super ( ( java . awt . Frame ) SwingUtilities . getWindowAncestor ( parent ) , true ) ; initComponents ( ) ; ModifiableJOptionPane . reverseOKCancel ( loginButton , cancelButton ) ; Preferences p = Preferences . userNodeForPackage ( getClass ( ) ) ; remember . setSelected ( p . getBoolean ( "remeber" , false ) ) ; if ( remember . isSelected ( ) ) { user . setText ( p . get ( "user" , "" ) ) ; password . setText ( p . get ( "pass" , "" ) ) ; globalUser = user . getText ( ) ; globalPassword = user . getText ( ) ; } initialized = true ; setLocationByPlatform ( true ) ; pack ( ) ; setVisible ( true ) ; }
creates new form logindialog
