StackWindowListener?
Posted by
Kenneth Sloan-2 on
URL: http://imagej.273.s1.nabble.com/StackWindowListener-tp5023759.html
I find myself in need of what I would call a "StackWindowListener".
I have an extension to StackWindow which is used in many of my plugins - which I prefer NOT to change (but I will, if I have to).
Now, I have a need for a user-level program to get a callback when the slice is changed (via the usual stack control slider). Is there a way to do that without modifying (or further extending) the existing StackWindow?
===============================================
In the alternative - is there an easy way to create something like a GenericDialog which is displayed while allowing the CURRENT thread to continue. Something that would allow:
dialog.show();
while(!dialog.done()){...do something interesting}
// dialog done - get results
I can get the desired effect by using KeyListener and having the user interact with the keyboad, but I'd like the option of a graphical dialog box which remains displayed while the main program proceeds.
--
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