aspose file tools*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "transfering focus with enter key" Watch "transfering focus with enter key" New topic
Author

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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: transfering focus with enter key
 
Similar Threads
limit the width of error message
TEXTFIELDS TO INT
Trapping keys in java applet
MY LOTTERY CLASS
Identify a component that has been added by iteration