Move next input field automatically
I have a frame containing multiple JTextField for input of 5 characters in each field. I move to next input area by Tab or mouse. I want to move next input area, when I have keyed in 5 characters, automatically. But How?. Solution is requested.