JavaFX still has some life into it for desktop projects, and a company that lives out of it, people pay them to keep JavaFX going, including mobile.
Now, I agree if Gluon ever goes away then JavaFX is certainly done.
Now, I agree if Gluon ever goes away then JavaFX is certainly done.
Java and JavaFX are being ported to iOS and Android as Project Mobile under the official OpenJDK umbrella.
JavaFX fresh builds are also seen on jdk.java.net now.
As far as I am aware, Project Mobile doesn't have much uptake, outside companies that are already working with Gluon.
Swing remains a decent GUI toolkit, but it still requires native dependencies for stuff like OS file dialogs and other platform APIs, audio/video codecs, hardware-accelerated graphics.
Which is why alternative JDK distributions still offer JRE variants, while officially from Oracle's side one should either use plain JDK or jlink/jpackage.