Microsoft SDK for Java

Button.getForeColor

Retrieves the button's current foreground color.

Syntax

public final Color getForeColor()

Return Value

Returns the button's current foreground color.

Remarks

Because the button's foreground color is read-only, this method always returns the value of the WINDOWTEXT constant, which specifies the system forecolor.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.