Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setFocus()

Status
Not open for further replies.

DPUser

Technical User
Oct 17, 2003
16
US
I have a Jbutton and want the focus to go to another component when the button is pressed. How Can I do this? Is there a method like setFocus in Java Script?

Thank you
 
Hello

The java equivalent to setFocus() is requestFocus() just place a dot after the name of the object you wish focus to transfer to and then select requestFocus() from the list of methods in say JBuilder

yourobject.requestFocus()

Kindest Regards

Narvik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top