Ticket #436 (closed defect: wontfix)
Closing IJ2 can be annoying
Reported by: | bdezonia | Owned by: | bdezonia |
---|---|---|---|
Priority: | major | Milestone: | imagej-2.0.0 |
Component: | Display API | Version: | |
Severity: | serious | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | #1597 |
Description
Start IJ2. Start another app. Now close IJ2 by selecting its red close button without activating IJ2 in any other way. Quit dialog comes up behind the other app.
I have tried a couple fixes in SwingInputHarvester that do not work. They are marked with a TODO and commented out.
This bug happens when IJ2 just run by itself or when run from Eclipse.
Change History
comment:2 Changed 7 years ago by bdezonia
After debugging determined that the only event the app frame sees when red X clicked is a window closing event. Added an event handler for this scenraio in the swing app frame and requested focus and no change.
Then went to SwingDialogPrompt and tried dialog.requestFocus(), dialog.requestFocusInWindow(), and dialog.toFront() to no avail. I'm at a loss as to what to try next.
comment:3 Changed 7 years ago by bdezonia
Also tried pane.grabFocus() from SwingDialogPrompt to no avail.
Note: is there an event we're not tracking that happens when someone closes the app while it does not have the focus? Could we track this event and give the current component the focus before the dialog fires?