private void addBuddyButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_addBuddyButtonActionPerformed
        int response = server.addBuddy(server.getCurrentUser(), enterBuddyNameField.getText());
        if(response == 106){ 
            server.buddies.add(enterBuddyNameField.getText());
            JOptionPane.showMessageDialog(rootPane, "Added " + enterBuddyNameField.getText() + " to the buddy list.");
            updateChooseBuddyComboBox();
            
        }
        else if(response == 111){
            JOptionPane.showMessageDialog(rootPane, "Error " + response + " - Could not add " + enterBuddyNameField.getText() + " to buddy list.");
        }
        else if(response == 112){
            JOptionPane.showMessageDialog(rootPane, "Error " + response + " - " + enterBuddyNameField.getText() + " does not exist.");
        }
        else if(response == 113){
            JOptionPane.showMessageDialog(rootPane, "Error " + response + " - Can't add yourself to your buddy list!");
        }
        else{
            JOptionPane.showMessageDialog(rootPane, "Did not recieve error/message code.");
        }
    }//GEN-LAST:event_addBuddyButtonActionPerformed