caretColor

Sets the color of the caret in a text component - fields, areas, editor and text panes.

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 modifier leaves the chain, which puts back the color the look and feel had supplied.

Return

this chain with the caret color declared on it.

Parameters

color

the color the blinking insertion caret is drawn in.

See also