Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
caret color
Melanie Fitzgerald
Greenhorn
Posts: 4
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can anyone suggest a way to change the color of the caret in a textField, without using Swing ?
Devangi Patel
Greenhorn
Posts: 2
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
please set the foreground color for textfield as follow
TextField t=new TextField();
t.setForeground(Color.blue);
and then type caret into that field, so it will be blue colored.
Melanie Fitzgerald
Greenhorn
Posts: 4
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I'm actually trying to change the color of the cursor(caret)inside the textField, not the actual text itself.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Why JeditorPane inside a JScrollPane start from buttom?
changing cursor color
wriring code for an EDITOR big problem??
Declare ArrayList in class
JTextField
More...