use of com.moneychanger.ui.dialogs.OTPasswordDialog in project otapij by FellowTraveler.
the class JavaCallback method runOne.
@Override
public void runOne(String szDisplay, OTPassword theOutput) {
if (null == theOutput) {
System.out.println("JavaCallback.runOne: Failure: theOutput variable (for password to be returned) is null!");
return;
}
if (!Utility.VerifyStringVal(szDisplay)) {
System.out.println("JavaCallback.runOne: Failure: strDisplay string (telling you what password to type) is null!");
return;
}
JDialog j = new OTPasswordDialog(null, true, szDisplay);
j.setModalityType(Dialog.ModalityType.APPLICATION_MODAL);
j.setAlwaysOnTop(true);
j.setVisible(true);
OTPasswordDialog.getPassword(theOutput);
}
Aggregations