how to center a jlabel code example
Example: how to set jlabel in center
jLabelvariable.setLocation((this.getWidth()-jLabelvariable.getWidth())/2,50);
jLabelvariable.setLocation((this.getWidth()-jLabelvariable.getWidth())/2,50);