Horizontalalignment Center Jlabel

JLabel lab=new JLabel("text");
lab.setHorizontalAlignment(SwingConstants.LEFT);     
Itchy Ibex