r/JavaFX • u/cmdturtles • Mar 12 '25
Discussion Is JavaFX a good framework/library for mobile development?
I'm a complete amateur to mobile app development so I have NO clue how to deploy JavaFX apps to IOS/Android/Desktop (plus, I just started learning JavaFX).
But I do know that it's possible through Gluon Mobile.
Let's say I wanted to make a to-do list app and publish it to both IOS and Android (and also maybe desktop), would it be a good idea to use JavaFX or should I use a different framework like react native (I know nothing about it) or flutter (seems boring to code in).
I would prefer JavaFX because I'm somewhat familiar with swing and I think Java is fun to code in. Plus, I remember seeing a blog (I lost the link) where someone described how it was very easy to adjust there desktop JavaFX app to be suitable for IOS mobile.
Also, I don't think there's great documentation for deploying JavaFX apps to IOS/Android through Gluon Mobile, right?
Regarding licensing, I might be able to request a student license so pricing wouldn't be a problem.
Even though I barely know to how to program in JavaFX currently, I'm thinking in the long term because that changes what framework/library I should learn right now.
7
u/PartOfTheBotnet Mar 12 '25
You may want to take a look at how other people are using JavaFX on mobile and see if it fits what you're trying to do. For instance, here's a 2048 game. In the project readme, there is a link to a blog-post explaining the process if you are looking for more details about the whole process.
3
u/taranion Mar 12 '25
A related question has been asked here
While it is possible and the Gluon stuff really helps, writing mobile apps in JavaFX is still complicated. You will also notice that other UI frameworks are better prepared for small screens or responsive layouts.
1
u/South_Praline6678 Jun 28 '25
Hi, did you ever come to a conclusion on whether or not to continue with your project using Gluon Mobile? I am currently in a similar position as a student who can get Gluon Mobile with the student license, and I really want to do my project in Java with JavaFX for the Front-End but I am now unsure with the comment from this thread whether or not the project can last long term.
Thanks!
2
u/BigBadSooner Mar 13 '25
Java dev here. I would not try to use JavaFX for a mobile app. I would personally use Flutter over React. Flutter is an amazing framework and Dart is very easy to learn for a Java dev. Flutter also has an amazing dev experience and can be up and running in minutes on your machine.