}
private void createPassPhraseField(boolean useDecryption) {
String inputFieldName = Strings.get("Location.Decryption.Label.PassPhrase");
JLabel passPhraseLabel = TextStyles.CaptionText.makeLabel(inputFieldName);
JTextField phrase = new KongaTextField(30);
if (useDecryption) {
phrase.setText(initialPassPhrase);
}
phrase.setEnabled(useDecryption);
phrase.setEditable(useDecryption);
passPhrase = new DefaultNonEmptyTextInputField(inputFieldName, phrase, passPhraseLabel);
passPhrase.setActive(false);
}