my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Focus on load Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Focus on load" Watch "Focus on load" New topic
Author

Focus on load

nihar pattnaik
Greenhorn

Joined: Mar 08, 2002
Posts: 1
How I will set the focus on a JComboBox on the load time in a JPanel..?
Alex Ku
Ranch Hand

Joined: Jan 15, 2002
Posts: 47
hi,
call jComponent.requestFocus() will set the focus to this component.
kawaii
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Focus on load