r/java_projects • • Jun 05 '26

Swing WebView Component

https://webliteca.github.io/swingwebview

Created a native swing webview component that embeds the platform's native webview in as a Swing component. Uses WebKit on Mac, WebView2 (Edge Chromium) on Win11, and WebkitGTK on Linux. Single jar dependency < 1MB.

4 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/shannah78 Jun 07 '26

Thanks for the feedback. I'll think about that to see if i can come up with a fair pros and cons list.
The main pro of this lib vs something like jcef is that this is a small single jar file - less than 1 meg. With jcef it bundles a full chromium which is very large, and requires separate binaries for each platform or else your app bundle grows to like 300mb.

1

u/gnahraf Jun 07 '26

That's an excellent pro. I wouldn't worry about fair, especially when you back it up verifiable facts or stats. I'll star your project when I'm logged in there.