SyntaxFix
Write A Post
Hire A Developer
Questions
The following constructor, JLabel(String, int), allow you to specify the horizontal alignment of the label.
JLabel(String, int)
JLabel label = new JLabel("The Label", SwingConstants.CENTER);