change(lisBoardsAvailable.getSelectedItem());
change((String) lisBoardsAvailable.getSelectedValue());
    public void actionPerformed(ActionEvent e) {        if (e.getSource().equals(butChange) || e.getSource().equals(lisBoardsAvailable)) {            if (lisBoardsAvailable.getSelectedIndex() != -1) {                change(lisBoardsAvailable.getSelectedItem());            }        } else if (e.getSource().equals(butUpdate)) {            apply();        } else if (e.getSource().equals(butOkay)) {            send();        } else if (e.getSource().equals(butCancel)) {            setVisible(false);        } else if (e.getSource().equals(butRandomMap)) {            randomMapDialog.setVisible(true);        }    }