This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
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 Head First Android this week in the Android 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
It's not a secret anymore!