Rich Java in the Browser with SnapKit and TeaVM

I’ve been playing around more with my SnapTea project. SnapKit is my Java client library for writing rich apps on top of either Swing or JavaFX. TeaVM is a remarkable bytecode to JavaScript transpiler. SnapTea is SnapKit with a TeaVM adapter – so I can compile and run my SnapKit Java desktop apps in the browser.

With SnapKit, I can easily write a rich Java desktop app in the conventional fashion. I build UIs as a hierarchy of Views containing text, images, graphics, buttons, sliders and more Views. Once I’m done, I run TeaVM from the command line and it generates a compact Classes.js file that opens in my browser.

So my project this week was to write a simple showcase application: BusyBox. This app contains many of the controls found in SnapKit. This is just a first version, with just a few hours of development, so check back later for updates!



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: