I have tried this.But still my password field is not getting the focus. My class extends Jdialog.When i open it,i should get the cursor in this password field. Please reply
how to add a component listener? I have tried with this, but still didn't get. oldPasswordField.setRequestFocusEnabled(true); oldPasswordField.requestFocus(); oldPasswordField.requestFocusInWindow();
I haven't create this code.just i am enhancing it. I know basics of java alone. I am new to MVC architecture. Can you help me to set the focus in oldpassword field?