File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

caret color

 
Melanie Fitzgerald
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone suggest a way to change the color of the caret in a textField, without using Swing ?
 
Devangi Patel
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm actually trying to change the color of the cursor(caret)inside the textField, not the actual text itself.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic