* {@inheritDoc}
*/
protected JComponent createControl() {
initLicenseTextPane();
ToggleCommand acceptCommand = new ToggleCommand("acceptLicenseCommand") {
protected void onSelection() {
SetupLicenseWizardPage.this.setEnabled(true);
}
};
ToggleCommand doNotAcceptCommand = new ToggleCommand("doNotAcceptLicenseCommand") {
protected void onSelection() {
SetupLicenseWizardPage.this.setEnabled(false);
}
};
doNotAcceptCommand.setSelected(true);
CommandGroup.createExclusiveCommandGroup(new ToggleCommand[] { acceptCommand, doNotAcceptCommand });
GridBagLayoutBuilder formBuilder = new GridBagLayoutBuilder();
formBuilder.append(new JScrollPane(licenseTextPane), 1, 1, true, true);
formBuilder.nextLine();
formBuilder.append(acceptCommand.createRadioButton());
formBuilder.nextLine();
formBuilder.append(doNotAcceptCommand.createRadioButton());
return formBuilder.getPanel();
}