void (ActionEvent e) { if (myUseCurrentScheme.isSelected()) { myTargetNameField.setEnabled(false); if (currentScheme != null) { myTargetNameField.setText(currentScheme); } } else { myTargetNameField.setEnabled(true); if (mySelectedName != null) myTargetNameField.setText(mySelectedName); } }