Hello,
is a new method really necessary? You can achieve almost the same by using a
radio button in the non blocking dialog:
items = newArray("Yes", "No");
Dialog.createNonBlocking("Title");
Dialog.addRadioButtonGroup("label", items, 1, 2, "No");
Dialog.show();
answer = Dialog.getRadioButton();
print(answer);
To get a boolean value, you can just use a checkbox instead of radio button:
Dialog.createNonBlocking("Title");
Dialog.addCheckbox("label", false);
Dialog.show();
answer = Dialog.getCheckbox();
print(answer);
Best regards,
Jan Valecka
--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html