• Post Reply Bookmark Topic Watch Topic
  • New Topic

need to make the text cursor white in a black text editor

 
amedeo modigliani
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I need some help. I have created a simple text editor.
my text editor background colour is BLACK.
The foreground colour is WHITE.
the text editor is working fine.
the only problem is the text cursor is in BLACK therefore I cannot see it with the BLACK background.

could anyone tell me how to set or make the text cursor colour change from originally black to WHITE.

Thanks

Mody
 
Nick Meverden
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
javax.swing.text.JTextComponent.setCaretColor(java.awt.Color color)
[ August 14, 2006: Message edited by: Nick Meverden ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!