title: How to format a multiplication table that is created with JOptionPane with HTML?
body: <p>I am trying to integrate HTML in <code>JOptionPane</code>  and I could not get to format the table.</p>
  
  <p>The CODE is:</p>
  
  <pre><code>import javax.swing.JOptionPane;
  
      public class tabell1 {
          public static void main(String[] arg) {
          int p;
          String t="";
          String l="\n";
          for (int r=1; r &lt;=10; r++) {
          for (int k=1; k  &lt;=10; k++) {
              p=r*k;
              System.out.print(p+"");
              t=t+p+"";
          }
          t=t+l;
          System.out.println("");
          }
      JOptionPane.showMessageDialog(null, t);
          }
      }
  </code></pre>
  
  <p>Anyone who could help me to format a multiplication table that is created with <code>JOptionPane</code> with HTML?</p>