Re: Pause in a java plugin program

Posted by Albert Cardona on
URL: http://imagej.273.s1.nabble.com/Pause-in-a-java-plugin-program-tp3697005p3697017.html

> ok i've got the macro waitForUser(string); fine but cannot get this to work
> in the java plugin, can anyone give me the code to do this?
>
> Thankyou
> Mark
>  


There is no magical pill, neither a one-liner to do what you want.

A system that could work:

- add a keylistener to the canvas
- IJ.showMessage("Now do this and that, then push key X")
- your listener gets the key event, and executes the second part of the
program.


Albert

--
Albert Cardona
http://www.mcdb.ucla.edu/Research/Hartenstein/acardona