For those who have been following my blogs, or heard my ‘One application to rule them all’ talk, know that I’ve been hanging a lot of my spare time experiments on my hour registration applet. It has served me well for over a decade, but the fact that browsers no longer support applets forced me to make decisions on how to maintain that functionality.
The simplest approach would have been to convert the applet into a stand alone application. Not that big of a hassle; login screen, connect to the HTTP back end, and off you go. But I decided to try and write a JavaFX application instead, with a login screen connecting to that back end, which is able to run on multiple platforms. Just for the sake of experience.
Initially I was highly sceptical, and I still am a bit, because it seems like quite a stretch. But the people at LeaningTech were very no-nonsense, and quickly -after fixing some normal issues with any beta level product- my original applet was chucking along nicely!
In the least invasive setup CheerpJ installs as a plugin in Chrome. You then see a small icon in the toolbar, and when a page is loaded with an applet in it, the icon turns orange and a popup can be opened.
These missing JS files can be uploaded before hand, which removes the need for the plugin to convert them, and naturally will greatly improve startup time.
Having these files available before hand is something I’ll try later, but for now a bit of patience suffices and… Tadaaa!
To prove this, I’ll open the debug view.
Yes, that is a HTML canvas being used to render that applet.
And it even performs well.
I’m still not quite getting my mind around it. Kudo’s to the CheerpJ team.