setLayout(new BorderLayout());
list = new JList(label);
JScrollPane pane = new JScrollPane(list);
// Format the list and the buttons in a vertical box
Box rightBox = new Box(BoxLayout.Y_AXIS);
Box leftBox = new Box(BoxLayout.Y_AXIS);
// Monitor all list selections
list.addListSelectionListener(new RadioUpdater());
for(int i=0; i < label.length; i++) {
checks[i] = new JCheckBox("Selection " + i);
checks[i].setEnabled(false);
rightBox.add(checks[i]);
}
leftBox.add(pane);
add(rightBox, BorderLayout.EAST);
add(leftBox, BorderLayout.WEST);