// Sets the initial selection.
AbstractCopyDialog.selectDestinationFilename(file, file.getName(), 0).feedToPathField(edtNewName);
mainPanel.add(edtNewName);
mainPanel.addSpace(10);
contentPane.add(mainPanel, BorderLayout.NORTH);
okButton = new JButton(Translator.get("rename"));
JButton cancelButton = new JButton(Translator.get("cancel"));
contentPane.add(DialogToolkit.createOKCancelPanel(okButton, cancelButton, getRootPane(), this), BorderLayout.SOUTH);