}
} else { try { int board = Integer.parseInt(e.getActionCommand()); this.lisBoardsSelected.select(board); } catch (NumberFormatException n) { } catch (ArrayIndexOutOfBoundsException a) { } }
    public void actionPerformed(ActionEvent e) {                if (e.getSource() == butChange || e.getSource() == lisBoardsAvailable) {            if (lisBoardsAvailable.getSelectedIndex() != -1) {                change(lisBoardsAvailable.getSelectedItem());            }        } else if (e.getSource() == butUpdate) {            apply();        } else if (e.getSource() == butOkay) {            send();        } else if (e.getSource() == butCancel) {            this.setVisible(false);        } else if (e.getSource() == butRandomMap) {            randomMapDialog.setVisible(true);        }     }