Pause in a program to ask user for information

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Pause in a program to ask user for information

meastwood98
Hi further to my question "Pause in a Program", I would like to know if it possible to say ask the user how many times he wants to run the specific program, say for example instead of the "ok" button, have a couple of options. Is this possible?

I hope this is clear,
Thanks,
Mark

P.S. See the 2nd answer from Wayne Rasband on the previous "Pause in a Program", to see how i have done that, im am using an imageJ plugin written in java.
Reply | Threaded
Open this post in threaded view
|

Re: Pause in a program to ask user for information

Michael Schmid
Hi Mark,

for a general dialog, what about the GenericDialog Class of
ImageJ?

If the input is a single number or String, it is easier to use
   IJ.getNumber or IJ.getString

Dialogs with methods are also recorded by the Macro Recorder.

Michael
________________________________________________________________

On 5 Mar 2008, at 14:11, meastwood98 wrote:

> Hi further to my question
> http://www.nabble.com/Pause-in-a-java-plugin-program- 
> to15617844.html#a15617844
> "Pause in a Program" , I would like to know if it possible to say  
> ask the
> user how many times he wants to run the specific program, say for  
> example
> instead of the "ok" button, have a couple of options. Is this  
> possible?
>
> I hope this is clear,
> Thanks,
> Mark
>
> P.S. See the 2nd answer from Wayne Rasband on the previous "Pause in a
> Program", to see how i have done that, im am using an imageJ plugin  
> written in java.