lisBoardsSelected = new List(5); lisBoardsSelected.addActionListener(this);
lisBoardsSelected = new JList(new DefaultListModel()); lisBoardsSelected.addListSelectionListener(this);
    private void setupBoardSettings() {        labBoardSize = new JLabel(Messages.getString("ChatLounge.labBoardSize"), JLabel.CENTER); //$NON-NLS-1$        labMapSize = new JLabel(Messages.getString("ChatLounge.labMapSize"), JLabel.CENTER); //$NON-NLS-1$        lisBoardsSelected = new List(5);        lisBoardsSelected.addActionListener(this);        butChangeBoard = new JButton(Messages.getString("ChatLounge.butChangeBoard")); //$NON-NLS-1$        butChangeBoard.setActionCommand("change_board"); //$NON-NLS-1$        butChangeBoard.addActionListener(this);        panBoardSettings = new JPanel();        // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        panBoardSettings.setLayout(gridbag);        c.fill = GridBagConstraints.BOTH;        c.insets = new Insets(1, 1, 1, 1);        c.weightx = 1.0;        c.weighty = 0.0;        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(labBoardSize, c);        panBoardSettings.add(labBoardSize);        gridbag.setConstraints(labMapSize, c);        panBoardSettings.add(labMapSize);        c.weightx = 1.0;        c.weighty = 1.0;        gridbag.setConstraints(lisBoardsSelected, c);        panBoardSettings.add(lisBoardsSelected);        c.weightx = 1.0;        c.weighty = 0.0;        gridbag.setConstraints(butChangeBoard, c);        panBoardSettings.add(butChangeBoard);        refreshBoardSettings();    }