News for hackers. Stuff that matters.
Re:Graphics for JVM by Cthulhu_ on Tuesday November 17, 2020 @05:54AM (#25122245)
> I'm not convinced that JavaFX is too slow for use in real-world GUIs.

I would like to have an opinion on this myself but I've yet to find a JavaFX application in the wild.

Re:Graphics for JVM by radomir_cernoch on Tuesday November 17, 2020 @06:12AM (#25122381)
We do use JavaFX in an app for our customer. The application is not public, however.

There are many aspects to UI performance. Unlike IntelliJ, our app has only tens of widgets displayed at once - I can't compare in this regard.

However, we have very big models, namely tables with >100000 of rows. Scrolling is smooth and initialization as well. From my experience, JavaFX allows you to write elegant code which still caches a lot of components. This is a strong performance benefit.

My issue with JavaFX is a very well thought-out philosophy, translated into an API which is far from perfect. Once you go beyond "hello world" examples, you e.g. have to start type-casting. I'd love to see JavaFX v3 where these things would be sorted.

Re:Graphics for JVM by ta988 on Tuesday November 17, 2020 @10:08AM (#25124540)
My experience as well. JavaFX proved to be really fast for us (internal tools as well). Used to control equipment (live) or do calculations. And we distribute in a <200MB package jre included (modular builds), installs on a fresh windows or linux with no other download. For people that already have a jdk installed, i think we are around 100MB. There has been a lot of work on making "small" distributable java apps in the recent JDKs.
Re:Graphics for JVM by geokon on Tuesday November 17, 2020 @06:48AM (#25122643)
I wrote a JavaFX application in Clojure using CLJFX. It's fantastic and native-speed when you do things right

https://github.com/geokon-gh/corascope/

I even managed to make a little SVG backend for it

That said - this seems to be more of a " graphics library " while JavaFX is more of a " user interface library ". I'm sure there is a ton of overlap - but I wouldn't be making funky creative coding displays directly in JavaFX

My minor annoyance is that it's nearly impossible to make something that runs on Android out of that - which seems like a giant shame given it's all JVM

Re:Graphics for JVM by jb1991 on Tuesday November 17, 2020 @07:25AM (#25122916)
The end of the article points out how this graphics library is getting used as part of a UI kit. The article goes full circle, it talks about the three different components of UI technology up front, and then shows the other two components near the end.
Re:Graphics for JVM by frou_dh on Tuesday November 17, 2020 @06:14AM (#25122401)
I tried JavaFX recently and within seconds all I could notice was jacked up font rendering.

By this point, it should be table-stakes that any GUI framework must always be tapped into identical font rendering to native apps on the host platform.

Re:Graphics for JVM by shock on Tuesday November 17, 2020 @07:37AM (#25123035)
Different JVMs have different font rendering settings. Try Zulu.