Share via


Component.getForeground

Class Overview | Class Members | This Package | All Packages

Syntax

public Color getForeground()

Returns

This component's foreground color. If this component does not have a foreground color, the foreground color of its parent is returned.

Description

Gets the foreground color of this component.

See Also

java.awt.Component#setForeground