简体   繁体   中英

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!

Use the .setCaretColor(Color.GREEN); method.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM