public void valueChanged(ListSelectionEvent e) {
if (list.getSelectedValue() != null) {
JCheckBox c = ((JCheckBox) list.getSelectedValue());
c.setSelected(!c.isSelected());
}
list.clearSelection();
}
});
final Vector<JCheckBox> checkboxes = new Vector<JCheckBox>();
JPanel topPanel = new JPanel(new BorderLayout());
JPanel topInner = new JPanel(new GridLayout(2, 1, 5, 5));