File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Cursor color of JTextfield Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Cursor color of JTextfield" Watch "Cursor color of JTextfield" New topic

Cursor color of JTextfield

Hugo Anbeek

Joined: Dec 03, 2008
Posts: 2

In a program I wrote I set the background color of a textfield to black and the foreground color to white. However the cursor remains black is it possible to set the color of the cursor?


Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Hugo Anbeek

Joined: Dec 03, 2008
Posts: 2
gracias (i feel stupid lol)
I agree. Here's the link:
subject: Cursor color of JTextfield
jQuery in Action, 3rd edition