• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Focus on Textfield????

 
Raajesh Chandran
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys!!
How to set the focus on Textfield in AWT.Any one knows help me
chandran
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Raajesh,
There is a requestFocus() method at the component level... the text that describes this method says that "the component must be visible on the screen for this request to be granted", so you'll probably need to put it in your start() method instead of init()...
HTH,
-Nate
 
Raajesh Chandran
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nate!!

Thank U very Much.I got it.
Regards,
chandran
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic