First off, see the API for the requestFocus() method and follow the advice given there about which method
you should use instead.
the problem was the JTextField allows only numeric values if i give any value other than numeric value in the JTextfield the JTextField is locked and there is no focus transfer happen between the JTextFields.the code i was used
If you didn't want that behavior, then why did you code for it? Where did you get this line?
Trying to create a program with just two keystrokes** doesn't work. You have to buckle down and learn to understand the code you're using. And the only way to get there is to first write your own code.
Oh, and please
BeForthrightWhenCrossPostingToOtherSites
http://stackoverflow.com/questions/8586013/transfer-the-focus-among-the-jtextfields-in-java-swing
http://forums.oreilly.com/topic/71434-generic-class-in-java/
http://www.dreamincode.net/forums/topic/260520-writing-generic-class-with-parameter-in-java/
This also appears to be a continuation of your earlier question, and should have been posted in the same
thread.
https://coderanch.com/t/561993/GUI/java/Focus-Gained-event
Also, you should have the courtesy to replay to responses on any thread you start.
** Ctrl+C, Crtl+V