This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets 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
 
Similar Threads
Auto tab event
Is it possible to refocus on a field after reloading the page?
Do you know a good Connection pooling utility
How to focus a input field at form load in struts2
To bring the focus to a text box