This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
ActionListener al = getButtonListener();
if (al != null) {
try {
if (pressedOption == evt.getSource()) {
al.actionPerformed(evt);
} else {
al.actionPerformed(new ActionEvent(
pressedOption, evt.getID(), evt.getActionCommand(), evt.getModifiers()
));
}
} catch (IllegalStateException ex) {
// a signal to not evaluate the closing options
// show the warning to user
org.openide.ErrorManager.getDefault ().notify (ex);
return;