hello all
how is the code to move the cursor from textfield1 to textfield2 right after key "enter" pressed ?
thank you
denny
hello all
how is the code to move the cursor from textfield1 to textfield2 right after key "enter" pressed ?
thank you
denny
Quick answer: call textfield2.requestFocusInWindow();
Proper answer: read this tutorial to understand how Swing manages moving the focus, and how you can control it:
http://download.oracle.com/javase/tutorial/uiswing/misc/focus.html
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.