aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes caret color Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "caret color" Watch "caret color" New topic
Author

caret color

Melanie Fitzgerald
Greenhorn

Joined: May 30, 2001
Posts: 4
Can anyone suggest a way to change the color of the caret in a textField, without using Swing ?
Devangi Patel
Greenhorn

Joined: Jun 01, 2001
Posts: 2
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

Joined: May 30, 2001
Posts: 4
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
 
subject: caret color