private void changeServerMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_changeServerMenuItemActionPerformed
        try {
            String address = JOptionPane.showInputDialog(this, "Server address:");
            connection.setServer(address, 3191);
            statusBarLabel.setText("Connected to " + connection.getHost() + " as " + connection.getSelf().getName());
        } catch (UnknownHostException ex) {
            Logger.getLogger(MainGUI.class.getName()).log(Level.SEVERE, null, ex);
        } catch (IOException ex) {
            Logger.getLogger(MainGUI.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_changeServerMenuItemActionPerformed