copy files: preferred component set (roma)

(cherry picked from commit 433e9b7eb45c8c2676eded5eb6cd24e7ebd9f004)
This commit is contained in:
anna
2011-12-06 10:38:28 +01:00
parent 8960c22efe
commit bff731a44b
@@ -127,7 +127,7 @@ class CopyFilesOrDirectoriesDialog extends DialogWrapper{
}
public JComponent getPreferredFocusedComponent() {
return myNewNameField;
return myShowNewNameField ? myNewNameField : myTargetDirectoryField.getChildComponent();
}
protected JComponent createCenterPanel() {