title: Setting JButton text to align to the left?
body: <p>I previously had a JLabel, that I wanted to be click-able. The easiest way I found to do this was make it a JButton and using the following code. It now looks like a JLabel</p>
  
  <pre><code>button.setBorder(BorderFactory.createEmptyBorder(2, 2, 2, 2));
  button.setBorderPainted(false);
  button.setContentAreaFilled(false);
  button.setFocusPainted(false);
  </code></pre>
  
  <p>Which is exactly what I wanted except the text is now aligned in the middle. Now from what I was able to read on other questions and searching. This should work</p>
  
  <pre><code>button.setHorizontalTextPosition( SwingConstants.LEFT );
  </code></pre>
  
  <p>Yet, the text still aligns in the middle of the button. Any ideas what I can do to change this? </p>