Code example for JLabel

Methods: setAlignmentX