JXBrowser similar
I use JXBrowser in one of my projects in Java to do a simple display of the googlemaps webpage so that I can trace routes on there, but recently I want to improve that project, but my problem is that the license for the JXBrowser expired (only one month), I can't just ask for another license, it doesn't work that way. So I am looking for an API similar to the JXBrowser, do you guys know any?
Solution 1:
You can use WebView - JavaFX component. It's a reasonable choice for simple pages, it offers a really good time to effect ratio
WebView webView = new WebView();
webView.getEngine().load("https://www.google.com/maps");
If you need something more powerful and you can't get a license for JxBrowser - there is also JCEF project:
- Java Chromium Embedded Framework (JCEF)
Unfortunately it works only with AWT/Swing because it's too complex to embed it in SwingNode. I mentioned that here:
- Stackoverflow - JCEF and JavaFX
With JCEF-based projects you'd have to think about supported platforms. There're different variants of natives and platform-specific problems, for example:
- Stackoverflow - JCEF ICU Check Failed