ballsLabel.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, collide, Alignment.BOTTOM_LEFT, 0, -15));
_configFrame.getContentPanel().add(ballsLabel);
final ButtonGroup ballsGroup = new ButtonGroup();
final UIRadioButton balls16 = new UIRadioButton("16");
balls16.setLayoutData(new AnchorLayoutData(Alignment.LEFT, ballsLabel, Alignment.RIGHT, 5, 0));
balls16.setSelectable(true);
balls16.setSelected(true);
balls16.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent event) {
resetBalls(16);
}
});
balls16.setGroup(ballsGroup);
_configFrame.getContentPanel().add(balls16);
final UIRadioButton balls32 = new UIRadioButton("32");
balls32.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, balls16, Alignment.BOTTOM_LEFT, 0, -5));
balls32.setSelectable(true);
balls32.setSelected(true);
balls32.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent event) {
resetBalls(32);
}
});
balls32.setGroup(ballsGroup);
_configFrame.getContentPanel().add(balls32);
final UIRadioButton balls64 = new UIRadioButton("64");
balls64.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, balls32, Alignment.BOTTOM_LEFT, 0, -5));
balls64.setSelectable(true);
balls64.setSelected(true);
balls64.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent event) {
resetBalls(64);
}
});
balls64.setGroup(ballsGroup);
_configFrame.getContentPanel().add(balls64);
final UIRadioButton balls128 = new UIRadioButton("128");
balls128.setLayoutData(new AnchorLayoutData(Alignment.TOP_LEFT, balls64, Alignment.BOTTOM_LEFT, 0, -5));
balls128.setSelectable(true);
balls128.setSelected(true);
balls128.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent event) {
resetBalls(128);
}
});
balls128.setGroup(ballsGroup);
_configFrame.getContentPanel().add(balls128);
_configFrame.layout();
}