horizontalTextPosition

Sets which side of the icon a label draws its text on; a label with no icon lays out the same either way.

Parameters

position

a HorizontalAlignment SwingConstants value; LEADING and TRAILING resolve against the component's orientation. Any other value is refused with an IllegalArgumentException.

See also


Sets which side of the icon a button draws its text on; a button with no icon lays out the same either way.

Parameters

position

a HorizontalAlignment SwingConstants value; LEADING and TRAILING resolve against the component's orientation. Any other value is refused with an IllegalArgumentException.

See also