void (ListSelectionEvent e) { int index = mySchemeList.getSelectedIndex(); if (index >= 0) { mySelectedName = myNames.get(index); if (!myUseCurrentScheme.isSelected() && mySelectedName != null) { myTargetNameField.setText(mySelectedName); } } }