• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
javax.swing.text.JTextComponent.setCaretColor(java.awt.Color color)
[ August 14, 2006: Message edited by: Nick Meverden ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic