caretColor

Sets the color of the caret in a text component.

A text component takes these colors from the look and feel, and only while they have not been set; once one is set here, it holds until the style stops setting it, which puts back the color the look and feel had supplied.

Parameters

color

the color the blinking insertion caret is drawn in.

See also