This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes if statement to transfer focus Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "if statement to transfer focus" Watch "if statement to transfer focus" New topic
Author

if statement to transfer focus

Candy Bortniker
Ranch Hand

Joined: Mar 17, 2003
Posts: 123
I need to write an if statement that will transfer focus from one textfield to the next. I have a statement that will transfer focus from the first to the second but not the second to the third. How do I say in java language:
if (GrpAcctNumber has focus)
ssn.transferFocus();
else
name.transferFocus();
this is what I have now:
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: if statement to transfer focus
 
It's not a secret anymore!