コード例 #1
0
ファイル: Login.java プロジェクト: vanhuyit89/vb6-to-java
 @Action
 public void login() {
   BuggyMasterCodeApp.getLogger().info("connecting to database");
   if (Db.db.connect(
       this.txServer.getText(), this.txUser.getText(), new String(this.txPwd.getPassword()))) {
     m_ok = true;
     this.setVisible(false);
   } else {
     G.showInfo("Connection to database " + this.txServer.getText() + " couldn't be established");
   }
 }