Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

if statement to transfer focus

 
Candy Bortniker
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic