public void actionPerformed(ActionEvent e) {
JTextField source = (JTextField) e.getSource();
tryAccept(source.getText());
}
});
sceneNameField.addFocusListener(new SelectAllFocusListener());
JButton cancelBtn = new JButton("Cancel");
cancelBtn.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
setVisible(false);