Login  Register

subtle interaction request

Posted by Kenneth Sloan-2 on Feb 04, 2019; 10:07pm
URL: http://imagej.273.s1.nabble.com/subtle-interaction-request-tp5021743.html

In a Java plugin:

I have an image open...

I want to display a NonBlockingGenericDialog (or, something else that will have the same effect)

BUT...I want the image window to be selected - without user interaction.

The problem is that I want to use the SPACE bar to toggle an overlay on/off - but if the user gets sloppy and
hits the SPACE bar while the dialog window is still on top...it is CANCELed.  Once I display the dialog box,
my program can't do anything.  Catch-22.

Perhaps I simply need to prevent SPACE from invoking the standard action of CANCEL?

Going off to read the documentation, again.

--
Kenneth Sloan
[hidden email]
Vision is the art of seeing what is invisible to others.

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html