dialog.setVisible(true);
return dialog.wasOkPressed() ? new String(field.getPassword()) : null;
}
private static OneColumnPanel layoutQuestion(Locatable original, KongaPasswordField field) {
OneColumnPanel col = new OneColumnPanel();
col.setInsets(0, 0, 10, 0);
col.setWeightX(1.0);
col.add(WizardStyleSheet.SMALL_CAPTION_STYLE.makeLabel("Password?"));
col.setInsets(0, 0, 5, 0);
EntityType inputType = original.getID().getEntityType();
EntityType outputType = (inputType == EntityType.Source) ? EntityType.Target : EntityType.Source;
col.add("The " + inputType.getDisplayName() + "'s password may have been blanked out.");
col.add("Provide the password for the new " + outputType.getDisplayName() + " here:");
col.add(field);
return col;
}