File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
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
I agree. Here's the link:
subject: Remove focus
How to remove focus from JFileChooser
Focus Lost throws error
Remove highlight from a textbox
WA #1.....word association
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014