Login  Register

GenericDialog programmatic "OK" ?

Posted by Joachim Wesner on Jul 17, 2009; 12:13pm
URL: http://imagej.273.s1.nabble.com/GenericDialog-programmatic-OK-tp3691723.html

Hi,

just another question....

I have a plugin that somehow streches the possibilities of GenericDialog
but I am too lazy to rewrite the GUI using "standard java" in a plugin
frame.

I have a DialogListener thar directly responds to some checkboxes to, for
example, read a data file and fill in some of the dialog fields based on
that.

I would like to add the option that after reading these data, the dialog is
automatically closed and processing starts immediately, i.e. I somehow need
to
simulate clicking "OK" by the user from within the DialogListener . What
would be the easiest way to acchieve this?

Mit freundlichen Grüßen / Best regards

Joachim Wesner
Projektleiter Optik Technologiesysteme

Leica Microsystems CMS GmbH | GmbH mit Sitz in Wetzlar | Amtsgericht
Wetzlar  HRB 2432
Geschäftsführer:  Dr. Stefan Traeger | Dr. Wolf-Otto Reuter | Dr. David Roy
Martyr | Colin Davis
www.leica-microsystems.com


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________