title: How to render basic HTML markup inside a JPanel in Java Swing?
body: <p>I want to do something really simple like this:</p>
  
  <pre><code>JPanel htmlPanel = new HtmlPanel("&lt;html&gt;&lt;body&gt;&lt;h1&gt;hello world&lt;/h1&gt;&lt;/body&gt;&lt;/html&gt;");
  </code></pre>
  
  <p>I think I had seen code somewhere that did exactly this. What about CSS and JS? Can the JPanel be made to support this easily? Are there libraries somewhere that do what I am asking for?</p>