javaswingjtextareacaret

Change Position Marker Color in JTextArea


I was wondering how to change the color of the position marker (the blinking I) in a JTextArea. The reason I want to do this is because I'm going to have a GUI with a black background, and green text (old terminal style). I want a white or green position marker. Thanks!


Solution

  • Call textArea.setCaretColor(Color.WHITE); method.