setLayout(new BorderLayout());
list = new JList(label);
JScrollPane pane = new JScrollPane(list);
buttons = new JRadioButton[label.length];
// 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(this);
for(int i=0; i < label.length; i++) {
buttons[i] = new JRadioButton("Selection " + i);
rightBox.add(buttons[i]);
}
leftBox.add(pane);
add(rightBox, BorderLayout.EAST);
add(leftBox, BorderLayout.WEST);