SwingConstants
SwingConstants is a constant class in Java's Swing toolkit that defines a set of integer constants used to specify the alignment of an object within a container. These constants are primarily used with components like labels, buttons, and tooltips to control how their text or graphical elements are positioned horizontally or vertically.
The main constants available are LEFT, RIGHT, CENTER, TOP, BOTTOM, and NORTH_LINE, SOUTH_LINE, and other specific
These constants are typically passed as arguments to methods that set alignment properties of Swing components.