title: Java set focus on JButton when pressing enter
body: <p>How can I make it so that when I press enter in a JTextField it activates a specific JButton? What I mean is something along the lines of a web page form where you can press enter to activate the button in the form.</p>