Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Initial focus  RSS feed

 
Yog Ananth
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I set Initial focus in a JTextField while opening my GUI. Requestfocus is not useful for me
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
textField.requestFocus() has to be after setVisible(true)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!