A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Dec 28, 2004
Jan 31, 2005 01:22:00
How to remove focus from a particular component. Currently in my text field the cursor is blinking now i want to remove the cursor position.
Joined: Dec 17, 2004
Jan 31, 2005 05:26:00
Use textfield1.setFocusable(false), then the field will not get focus at any time.
If you want to transfer focus from one textfiled to another
//in textfield1's key listener (key pressed and key = ENTER)
Hope This Helps
I agree. Here's the link:
subject: Remove focus
WA #1.....word association
Focus Lost throws error
Remove highlight from a textbox
How to remove focus from JFileChooser
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015