icon

Sets the icon a label displays beside its text; null displays none.

A look and feel may derive other properties from the icon; once the style stops setting it, the icon is restored, not what was derived from it.

Parameters

icon

the icon drawn beside the text; its size counts toward the label's preferred size, so swapping in a differently sized one re-lays the label out.

See also


Sets the icon a button displays beside its text; null displays none.

A look and feel may derive other properties from the icon; once the style stops setting it, the icon is restored, not what was derived from it.

Parameters

icon

the icon drawn beside the text; its size counts toward the button's preferred size, so swapping in a differently sized one re-lays the button out.

See also