okButton.setEnabled(false);
DialogDescriptor desc = new DialogDescriptor(panel,
NbBundle.getMessage(MainClassWarning.class, "CTL_MainClassWarning_Title", ProjectUtils.getInformation(project).getDisplayName()), // NOI18N
true, options, options[0], DialogDescriptor.BOTTOM_ALIGN, null, null);
desc.setMessageType(DialogDescriptor.INFORMATION_MESSAGE);
Dialog dlg = DialogDisplayer.getDefault().createDialog(desc);
dlg.setVisible(true);
if (desc.getValue() != options[0]) {
canceled = true;
} else {
mainClass = panel.getSelectedMainClass();
canceled = false;
ep.put(J2SEProjectProperties.MAIN_CLASS, mainClass == null ? "" : mainClass);
}
dlg.dispose();
return canceled;
}