JavaFX for Presentation Layer in Standalone Deskto

2019-05-10 20:27发布

问题:

We are going to create a java standalone Desktop application. We are searching for the best solution for the presentation layer. I saw javaFX and really liked it, but I am a bit confused. Can it be used in standalone Desktop applications?

Can I use javaFX in my standalone Desktop app and also use css to style the Ui?

回答1:

It is perfectly possible to use JavaFX in a standalone Desktop app and apply CSS styling to it.

In JavaFX's lingo, this is know as a "Standalone" or "Self-Contained" deployment.

You can even integrate it with Swing or SWT, if the need arises. Note, though, that it's not possible the other way round.