foreground

Specifies the foreground (text) color of the component.

Type

java.awt.Color          e.g., java.awt.Color.BLUE

number (hex)            e.g., 0xFF0000

string (color name)     e.g., 'red'

array [r,g,b]           e.g., [255,0,0]

JSON {r:#,g:#,b:#}      e.g., {r:255,g:0,b:0}

Example

foreground = 'red';

See Also

Color Tab, for more information about setting color.

<< font © 1996-2013 InetSoft Technology Corporation (v11.5) format >>