NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #436 (closed defect: wontfix)

Opened 2011-04-08T10:28:22-05:00

Last modified 2014-12-18T12:46:45-06:00

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


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:1 Changed 2011-04-08T10:39:51-05:00 by bdezonia

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?

comment:2 Changed 2011-10-25T11:34:40-05:00 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 2011-10-25T12:43:19-05:00 by bdezonia

Also tried pane.grabFocus() from SwingDialogPrompt to no avail.

comment:4 Changed 2011-10-25T14:18:43-05:00 by curtis

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-final

Let's push this ticket to later. It is a minor, potentially platform-specific issue that will at worst annoy people a little bit.

comment:5 Changed 2012-12-06T11:16:57-06:00 by bdezonia

  • Blocking 1594 added

comment:6 Changed 2012-12-06T11:33:17-06:00 by bdezonia

  • Blocking 1597 added; 1594 removed

comment:7 Changed 2014-12-18T12:46:45-06:00 by curtis

  • Status changed from new to closed
  • Resolution set to wontfix

Closing as "wontfix" for now, since issue is very minor with an easy workaround. Will reopen in GitHub if someone complains.