Let's say I have a bunch of JTextFields. What I want to do is, when I hit tab from one JTextField to another, I want the target JTextField to highlight the text in there. I can't find anything in the API that does this. Anyone?
You'll need to implement the FocusListener interface and call the selectAll method when the textfield fires a FocusEvent. If you need me to go more indepth, fell free to ask.
Originally posted by: Templeton
You'll need to implement the FocusListener interface and call the selectAll method when the textfield fires a FocusEvent. If you need me to go more indepth, fell free to ask.
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.