Retrieves a value indicating whether the text in the panel is left-aligned, right-aligned, or centered.
public int getAlignment()
Returns an integer that represents the alignment of the text in the panel. Possible return values are constants defined in the HorizontalAlignment class.
See Also setAlignment