JPanel modesPanel = new JPanel(new GridLayout(0, 1));
Border border = BorderFactory.createTitledBorder("Checking Mode");
modesPanel.setBorder(border);
ButtonGroup group = new ButtonGroup();
JRadioButton aRadioButton = null;
final CheckingMode modes[] = { CheckingMode.SIMPLE, CheckingMode.PROPAGATE, CheckingMode.PROPAGATE_PRESERVING_UNCHECK,
CheckingMode.PROPAGATE_PRESERVING_CHECK };
for (int i = 0, n = modes.length; i < n; i++) {
final int g = i;
ActionListener modeListener = new ActionListener() {
public void actionPerformed(ActionEvent actionEvent) {