lisMinefield = new List(2);
lisMinefield = new JList(new DefaultListModel());
    private void setupMinefield() {        panMinefield = new JPanel();        labMinefield = new JLabel(Messages.getString("ChatLounge.labMinefield")); //$NON-NLS-1$        lisMinefield = new List(2);        labConventional = new JLabel(Messages.getString("ChatLounge.labConventional"), JLabel.RIGHT); //$NON-NLS-1$        labCommandDetonated = new JLabel(Messages.getString("ChatLounge.labCommandDetonated"), JLabel.RIGHT); //$NON-NLS-1$        labVibrabomb = new JLabel(Messages.getString("ChatLounge.labVibrabomb"), JLabel.RIGHT); //$NON-NLS-1$        fldConventional = new JTextField(1);        fldCommandDetonated = new JTextField(1);        fldVibrabomb = new JTextField(1);        butMinefield = new JButton(Messages.getString("ChatLounge.butMinefield")); //$NON-NLS-1$        butMinefield.addActionListener(this);        enableMinefields(client.game.getOptions().booleanOption("minefields")); //$NON-NLS-1$        // layout        GridBagLayout gridbag = new GridBagLayout();        GridBagConstraints c = new GridBagConstraints();        panMinefield.setLayout(gridbag);        c.fill = GridBagConstraints.VERTICAL;        c.insets = new Insets(1, 1, 1, 1);        c.weightx = 1.0;        c.weighty = 0.0;        c.gridwidth = GridBagConstraints.REMAINDER;        gridbag.setConstraints(labMinefield, c);        panMinefield.add(labMinefield);        c.fill = GridBagConstraints.BOTH;        c.weightx = 1.0;        c.weighty = 1.0;        gridbag.setConstraints(lisMinefield, c);        panMinefield.add(lisMinefield);        c.gridwidth = 1;        c.weightx = 0.0;        c.weighty = 0.0;        gridbag.setConstraints(labConventional, c);        panMinefield.add(labConventional);        c.gridwidth = GridBagConstraints.REMAINDER;        c.weightx = 1.0;        c.weighty = 0.0;        gridbag.setConstraints(fldConventional, c);        panMinefield.add(fldConventional);        c.gridwidth = 1;        c.weightx = 0.0;        c.weighty = 0.0;        gridbag.setConstraints(labCommandDetonated, c);        panMinefield.add(labCommandDetonated);        c.gridwidth = GridBagConstraints.REMAINDER;        c.weightx = 1.0;        c.weighty = 0.0;        gridbag.setConstraints(fldCommandDetonated, c);        panMinefield.add(fldCommandDetonated);        c.gridwidth = 1;        c.weightx = 0.0;        c.weighty = 0.0;        gridbag.setConstraints(labVibrabomb, c);        panMinefield.add(labVibrabomb);        c.gridwidth = GridBagConstraints.REMAINDER;        c.weightx = 1.0;        c.weighty = 0.0;        gridbag.setConstraints(fldVibrabomb, c);        panMinefield.add(fldVibrabomb);        c.gridwidth = GridBagConstraints.REMAINDER;        c.anchor = GridBagConstraints.CENTER;        c.weightx = 0.0;        c.weighty = 0.0;        gridbag.setConstraints(butMinefield, c);        panMinefield.add(butMinefield);        refreshMinefield();    }