Ticket #436 (closed defect: wontfix)

Opened 8 years ago

Last modified 5 years ago

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:1 Changed 8 years ago 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 8 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 8 years ago by bdezonia

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

comment:4 Changed 8 years ago 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 7 years ago by bdezonia

  • Blocking 1594 added

comment:6 Changed 7 years ago by bdezonia

  • Blocking 1597 added; 1594 removed

comment:7 Changed 5 years ago 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.

Note: See TracTickets for help on using tickets.