• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to change the focus the control

 
prathimaprasun rao
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello everyone,
I have a field "phone". I divide this phone into "pAreaCode, subphone and mainphone". pAreaCode and subphone field length is 3 characters where as main phone is of 4 characters.When I enter 3 characters in pAreaCode, I would like the cursor to be transferred to the subphone field. Similarly, when I enter 3 characters in subphone, I would like the cursor to be transferred to the mainphone field.Could any one suggest me how to do with sample code?

Waiting for reply!
Prathima.
 
Srikanth Ramu
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jtexrequestFocus() method should get the focus
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!