Customising what happens when pressing 'tab' in Netbeans Swing GUI
<p>So I am building an login frame using Netbeans 8.1. The problem is that after the user has typed in their username, I want them to be able to press the tab key and then have the password textField selected, but instead of this, the 'Login' button is selected.</p>

<p>On startup the username field is selected.</p>

<p><a href="http://i.stack.imgur.com/bf1LK.png" rel="nofollow">Then when I press tab it looks like this</a></p>

<p><a href="http://i.stack.imgur.com/4zLOQ.png" rel="nofollow">But instead I want it to look like this when I press tab</a></p>

<p>Any help is welcome, but I would prefer it if I can do this without getting into the code and can use the Netbeans GUI instead(the project is only about designing the GUI, and nothing about the actual code).</p>