I have a JButton with a background image & a text of button.
Now I want a text to be aligned Left & Image should remain at center
text should be on image.
For that I have write,
objButton.setHorizontalAlignment(SwingConstants.EA ST); //for left aligning
objButton.setHorizontalTextPosition(0); // to place text on the image ---- this is working fine
but I am not able to align text to left. It is still showing me at center.
Please help me out....