A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Murach's Java Servlets and JSP
this week in the
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
subject: Remove focus
How to remove focus from JFileChooser
WA #1.....word association
Remove highlight from a textbox
Focus Lost throws error
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014