private void btnSignUpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSignUpActionPerformed
        String password = new String(passField.getPassword());
        if(!("".equals(txtUserName.getText()) || "".equals(password))){
            try {
                if(createUser()){                
                    database.updateIP();
                    InstantMessenger.user = database.getName(database.IP);
                    friends.setVisible(true);
                    this.setVisible(false);
                    friends.displayFrnds();
                }
            } catch (SQLException ex) {
                
            }
        }
    }//GEN-LAST:event_btnSignUpActionPerformed