MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getString

Method getString

ij/src/main/java/ij/IJ.java:977–984  ·  view source on GitHub ↗

Allows the user to enter a string in a dialog box. Returns "" if the user cancels the dialog box.

(String prompt, String defaultString)

Source from the content-addressed store, hash-verified

975 /** Allows the user to enter a string in a dialog box. Returns
976 "" if the user cancels the dialog box. */
977 public static String getString(String prompt, String defaultString) {
978 GenericDialog gd = new GenericDialog("");
979 gd.addStringField(prompt, defaultString, 20);
980 gd.showDialog();
981 if (gd.wasCanceled())
982 return "";
983 return gd.getNextString();
984 }
985
986 /**Delays 'msecs' milliseconds.*/
987 public static void wait(int msecs) {

Callers 3

duplicateMethod · 0.95
addMenuBarMethod · 0.95
getImagePlusFromURLMethod · 0.95

Calls 4

addStringFieldMethod · 0.95
showDialogMethod · 0.95
wasCanceledMethod · 0.95
getNextStringMethod · 0.95

Tested by

no test coverage detected