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.
Summary: | Focus lost after invoking buttons in the wizard | ||
---|---|---|---|
Product: | platform | Reporter: | Ondrej Rypacek <rypacek> |
Component: | Window System | Assignee: | Milos Kleint <mkleint> |
Status: | CLOSED FIXED | ||
Severity: | blocker | Keywords: | FOCUS |
Priority: | P3 | ||
Version: | 4.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Ondrej Rypacek
2005-02-07 16:12:03 UTC
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 |