File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes transfering focus with enter key Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "transfering focus with enter key" Watch "transfering focus with enter key" New topic

transfering focus with enter key

Candy Bortniker
Ranch Hand

Joined: Mar 17, 2003
Posts: 123
I am trying to allow the user to press enter and have the cursor move to the next textfield. I have it working for the first textfield, it will move it to the next textfield but I don't know how to get it to move to the next textfield from there. Does that make since? I need some advice on how to write the code to say if you are in textfield1 move to textfield2, if you are in textfield2 move to textfield3.
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535

[ March 17, 2004: Message edited by: Craig Wood ]
subject: transfering focus with enter key
jQuery in Action, 3rd edition