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.
Steps2Repro: 1) open the "Internationalization Wizard" or the "Internationalization Test Wizard" 2) Press Add Source (Alt-A) , Remove Source(s) (Alt-R), or Next and Select All (Alt-A), Select Resource (Alt-R) 3) Press cancel to cancel the dialog that appears 4) Press Alt-B ---> the main "Build" menu appears, i.e. the focus is in the main window, not in the wizard
NodeOperation is used to show the dialog and in the case of ESC, nothing else is executed in the action handler. I suspect the problem is in NodeOperation.select. I even tried to manually reclaim the focus after the modal dialog finishes ( .select returns ), but that didn't help.
This is problem of all modal dialogs, they have MainWindow set as their parent, and this is where the focus returns to.
not really all dialogs. it's the problem of Fileselector dialog created in the NodeOperation.select() method. The FileSelector is always created with null as the parent window, resulting in focus going to main window. Not sure what are the reasons for using a custom CoronaDialog instead of the default Notify/DialogDescriptor. Historical reasons only?
fixed by replacing the obsolete coronadialog with dialogdescriptor+dialogdisplayer standard solution which knows how to handle focus in dialogs. Also improves dialog behaviour on macosx.
v