Java – Can you use java.swing and javafx for Android development?

Can you use java.swing and javafx for Android development?… here is a solution to the problem.

Can you use java.swing and javafx for Android development?

I

don’t really know much about android development, and I’m wondering if I can use java.swing and/or javafx.

Solution

You can use JavaFXPorts development JavaFX deployable applications on Android (not Swing applications). Quote JavaFXPorts documentation for more information.

You need to make your own assessment of whether using JavaFXPorts is appropriate for your application, or whether it is best for you to code entirely with the native Android SDK provided by Google or with other 3rd-party development SDKs such as Unity. I will not make such a suggestion here.

Related Problems and Solutions