title: Text Not Aligning To the Center of JLabel in Java
body: <p>I have a JLabel on the bottom of my panel that gives text instructions to the user. Some of the text went off the screen because it was too long. To fix this, I added  tags. However, now the text is no longer centered, it is now aligned to the left. Why is this case. Shouldn't this code center the text?</p>
  
  <pre><code>detailedInstructions.setText("&lt;html&gt;&lt;div align=center&gt;" + test.getMicroSteps()[currMicroStep].getDescription() + "&lt;/div&gt;&lt;html&gt;");
  </code></pre>