Focus on the text field on startup.

This commit is contained in:
Danila Fedorin 2017-07-30 21:25:21 -07:00
parent a0a4f1fbfe
commit 97d63489cc
1 changed files with 5 additions and 0 deletions

View File

@ -247,4 +247,9 @@ public class Window extends JFrame {
});
}
@Override
public void setVisible(boolean b) {
super.setVisible(b);
if(b) inputField.requestFocusInWindow();
}
}