private void changeUsernameMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_changeUsernameMenuItemActionPerformed
        try {
            String newName = JOptionPane.showInputDialog(this, "Please enter your username.");
            System.out.println(newName.equalsIgnoreCase("null"));
            connection.setSelf(new ChatPerson(newName, "online"));
            System.out.println("USERNAME " + connection.getSelf().getName());
            if (connection.getSelf() == null) {
                System.out.println("hi");
                changeUsernameMenuItemActionPerformed(evt);
            }
        } catch (IOException ex) {
            Logger.getLogger(MainGUI.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_changeUsernameMenuItemActionPerformed