public boolean initLogin(){
  m_cc=CConnection.get(Adempiere.getCodeBaseHost());
  hostField.setValue(m_cc);
  if (Ini.isPropertyBool(Ini.P_VALIDATE_CONNECTION_ON_STARTUP)) {
    validateConnection();
  }
  userTextField.setText(Ini.getProperty(Ini.P_UID));
  if (Ini.isPropertyBool(Ini.P_STORE_PWD))   passwordField.setText(Ini.getProperty(Ini.P_PWD));
 else   passwordField.setText("");
  languageCombo.setSelectedItem(Ini.getProperty(Ini.P_LANGUAGE));
  if (Ini.isPropertyBool(Ini.P_A_LOGIN)) {
    connectionOK();
    defaultsOK();
    if (m_connectionOK)     m_okPressed=true;
    return m_connectionOK;
  }
  return false;
}

public boolean initLogin ( ) { m_cc = CConnection . get ( Adempiere . getCodeBaseHost ( ) ) ; hostField . setValue ( m_cc ) ; if ( Ini . isPropertyBool ( Ini . P_VALIDATE_CONNECTION_ON_STARTUP ) ) { validateConnection ( ) ; } userTextField . setText ( Ini . getProperty ( Ini . P_UID ) ) ; if ( Ini . isPropertyBool ( Ini . P_STORE_PWD ) ) passwordField . setText ( Ini . getProperty ( Ini . P_PWD ) ) ; else passwordField . setText ( "" ) ; languageCombo . setSelectedItem ( Ini . getProperty ( Ini . P_LANGUAGE ) ) ; if ( Ini . isPropertyBool ( Ini . P_A_LOGIN ) ) { connectionOK ( ) ; defaultsOK ( ) ; if ( m_connectionOK ) m_okPressed = true ; return m_connectionOK ; } return false ; }
set initial & ini parameters optional automatic login
