Manual choice within a GenericDialog

Posted by CARL Philippe (LBP) on
URL: http://imagej.273.s1.nabble.com/Manual-choice-within-a-GenericDialog-tp5023615.html

Dear all,
Within a GenericDialog, I would like to give the possibility to choose between some preprogrammed choices and in the case the user isn't happy about the proposed offer that he manually types in an alternative choice (in String format).
This can of course easily be done by combining an addChoice and addStringField with a "manual choice" within the addChoice and the use of an if function that will then read the StringField content.
My question is if it would be possible to have a kind of "one stone, two birds" method that would be an addChoice method and within one of its choices could be transformed in a kind of StringField?
I thank you very much for your lighting on this.
My best regards,
Philippe

Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 42 89

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