Skip to content

Commit

Permalink
Set a default button on the Create Profile dialog.
Browse files Browse the repository at this point in the history
  • Loading branch information
sk89q committed Nov 17, 2013
1 parent 9fbcd30 commit 32658b8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/sk89q/skmcl/swing/CreateProfileDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ private void initComponents() {
add(form, BorderLayout.CENTER);
add(buttons, BorderLayout.SOUTH);

getRootPane().setDefaultButton(createButton);

createButton.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Expand Down

0 comments on commit 32658b8

Please sign in to comment.