'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 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Andrew Thompson