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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.