I have a JFrame with 2 Password Fields and 3 buttons, the following code was provided to me as a part of the actual GUI builder, but it places the focus on the second field rather than the first one.
frame.addWindowListener(new WindowAdapter()
{
public void windowActivated(WindowEvent e)
{
newContentPane.resetFocus();
}
}
);
What is it in this code that I can alter to make the default focus my first password field?
Thanks for the help!