Answers for "how to set jlabel text to center"

3

jlabel text center

JLabel label = new JLabel("The Label", SwingConstants.CENTER);
Posted by: Guest on May-01-2021
0

how to set jlabel in center

jLabelvariable.setLocation((this.getWidth()-jLabelvariable.getWidth())/2,50);
Posted by: Guest on October-22-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language