Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Focus on load

 
nihar pattnaik
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How I will set the focus on a JComboBox on the load time in a JPanel..?
 
Alex Ku
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
call jComponent.requestFocus() will set the focus to this component.
kawaii
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic