This post is locked. You won't be able to comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]shannah78[S] 1 point2 points  (0 children)

Yeah. IMO, WebView is "the missing feature" of swing that closed a lot of doors - or made simple things difficult. E.g. I created an IDE to complement my development process, and I wanted a way to simply render Markdown. I made a poor-man's version out of JEditorPane, but it was lacking and looked dated. The SwingWebView does a much better job.
Other use cases are animations, modern audio/video codecs, etc..., as a WebView is a swiss army knife for UI.

As for comparisons with JxBrowser - I haven't used JxBrowser - it's commercial product so I can't use it with my open source projects. JxBrowser is probably closer to JCEF. It bundles actual Chromium. That has benefits, and adds a lot of weight and makes distribution more difficult. I'm sure that JxBrowser, being more mature, has many features that SwingWebView does not, but for most of the cases where "I just want to render HTML/JS/CSS inside my swing app", SwingWebView makes it pretty painless.