private void connectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connectButtonActionPerformed
        IP = ipField.getText();
        nickname = "[" + nickNameField.getText() + "] ";
        if ("".equals(IP) || "".equals(nickname)) {
            displayMessage("You must enter a valid IP and nickname.", ERRORMESSAGE);
        } else {
            client = new Client(IP, 23666, nickNameField.getText(), this);
            client.start();
        }
    }//GEN-LAST:event_connectButtonActionPerformed