<p>What libraries/methods do you know of that can do some basic HTML representation in Swing? Can you comment on your experience?</p>

[{'answer_id': 26612, 'author': 'Herms', 'author_id': 1409, 'author_profile': 'https://Stackoverflow.com/users/1409', 'pm_score': 1, 'selected': False, 'text': '<p>I haven\'t tried this in a while, but a quick google search shows some possibilities:</p>\n\n<ul>\n<li><a href="http://today.java.net/pub/a/today/2004/05/24/html-pt1.html" rel="nofollow noreferrer">Java Sketchbook: The HTML Renderer Shootout, Part 1</a></li>\n<li><a href="http://lobobrowser.org/cobra.jsp" rel="nofollow noreferrer">Cobra: Java HTML Renderer &amp; Parser</a></li>\n</ul>\n\n<p>Are you trying to do this in an applet, or an application?  If it\'s an application (or signed applet) you could potentially instantiate IE or Firefox within your application.  <a href="http://www.webrenderer.com/index.php" rel="nofollow noreferrer">Webrenderer</a> acts as a Swing wrapper for this.</p>\n'}, {'answer_id': 26672, 'author': 'dlinsin', 'author_id': 198, 'author_profile': 'https://Stackoverflow.com/users/198', 'pm_score': 1, 'selected': False, 'text': '<p>Swing has a built-in compontent called <a href="http://java.sun.com/javase/6/docs/api/javax/swing/plaf/basic/BasicHTML.html" rel="nofollow noreferrer">BasicHTML</a>. I\'ve never used it, but I think it should be sufficient for the basic stuff. </p>\n'}, {'answer_id': 26710, 'author': 'McDowell', 'author_id': 304, 'author_profile': 'https://Stackoverflow.com/users/304', 'pm_score': 2, 'selected': True, 'text': '<p>Many of the Swing controls (like JLabel) can render basic HTML content. <a href="http://java.sun.com/javase/6/docs/api/javax/swing/JEditorPane.html" rel="nofollow noreferrer">JEditorPane</a> can be used to display HTML pages. However, these controls are limited to <a href="http://www.w3.org/TR/REC-html32" rel="nofollow noreferrer">HTML 3.2</a> support.</p>\n\n<p>For a richer experience, I would use the <a href="https://java.net/projects/jdic/" rel="nofollow noreferrer">JDesktop Integration Components</a>.</p>\n\n<blockquote>\n  <p>JDIC provides Java applications with\n  access to functionalities and\n  facilities provided by the native\n  desktop. It consists of a collection\n  of Java packages and tools. JDIC\n  supports a variety of features such as\n  <strong>embedding the native browser</strong>,\n  launching the desktop applications,\n  creating tray icons on the desktop,\n  registering file type associations,\n  creating JNLP installer packages, etc.</p>\n</blockquote>\n'}, {'answer_id': 27229, 'author': 'jsight', 'author_id': 1432, 'author_profile': 'https://Stackoverflow.com/users/1432', 'pm_score': 1, 'selected': False, 'text': '<p>This has historically been a major weak point for Java, IMO.  There are numerous ways to display limited markup, but very few that offer full featured HTML capabilities.  The previously mentioned JDIC component is one option, however it is considered a "heavyweight" component and therefore does not always integrate well with Swing applications.</p>\n\n<p>I am hopeful, however, that the new Webkit based <a href="http://weblogs.java.net/blog/ixmal/archive/2008/05/introducing_jwe.html" rel="nofollow noreferrer">JWebPane</a> project will provide more advanced capabilities without all of the issues that we\'ve had to deal with in the past.  And, of course, there are several commercial options as well (<a href="http://www.icesoft.com/products/icebrowser.html" rel="nofollow noreferrer">IceBrowser</a> is pretty good as an example).</p>\n'}, {'answer_id': 1005469, 'author': 'Evan', 'author_id': 6277, 'author_profile': 'https://Stackoverflow.com/users/6277', 'pm_score': 0, 'selected': False, 'text': '<p>Came across <a href="http://lobobrowser.org/java-browser.jsp" rel="nofollow noreferrer">Lobo</a> java web browser the other day.</p>\n\n<blockquote>\n  <p>Lobo is being actively developed with the aim to fully support HTML 4, Javascript and CSS2.</p>\n</blockquote>\n\n<p>No experience with it though, but thought it may fit the bill for you.</p>\n'}, {'answer_id': 2245725, 'author': 'Horcrux7', 'author_id': 12631, 'author_profile': 'https://Stackoverflow.com/users/12631', 'pm_score': 2, 'selected': False, 'text': '<p>A good pure Java solution is <a href="http://www.inetsoftware.de/other-products/jwebengine" rel="nofollow noreferrer">JWebEngine</a>. It render HTML 4 very good.</p>\n'}, {'answer_id': 24264560, 'author': 'Paolo Fulgoni', 'author_id': 323447, 'author_profile': 'https://Stackoverflow.com/users/323447', 'pm_score': 1, 'selected': False, 'text': '<p>I\'ve just used <strong><a href="http://cssbox.sourceforge.net/swingbox/" rel="nofollow">SwingBox</a></strong> to display a quite simple HTML page, with good results.</p>\n\n<p>The project includes a simple demo application which compares its <code>BrowserPane</code> component to <code>JEditorPane</code>, showing a far better result on complex pages (but still not comparable with a modern web browser).</p>\n\n<p>The only issue I had is about unwanted scrollbars from the wrapping <code>JScrollPane</code>. The demo application seems to have the same problem. I can\'t tell where the issue originates. I\'m using version 1.0.</p>\n\n<p>Here a code fragment to show how simple is to use the component:</p>\n\n<pre><code>BrowserPane browserPane = new BrowserPane();\nJScrollPane scrollPane = new JScrollPane(browserPane);\nsomeContainer.add(scrollPane);\n\nbrowserPane.setText("&lt;html&gt;&lt;b&gt;Some HTML here&lt;/b&gt;&lt;/html&gt;");\n// or...\nbrowserPane.setPage(new URL("http://en.wikipedia.org"));\n</code></pre>\n'}]
['https://Stackoverflow.com/questions/26594', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/2644/']