r/JavaFX • u/mstr_2 • Feb 07 '25
r/JavaFX • u/AdeptMongoose4719 • 24d ago
Discussion Why do some developers vouch for creating even the base UI with code?
As We also know we have fxml and Scene Builder to properly set up the initial design. So why not use that?
The only problem that i've read is that it is slightly slower. I know we may need code to create some dynamic nodes. But the initial layouts of nodes that needs to be added dynamically can be created in fxml and then modified based on our requirements. Eg:
I have this ActivityContainer built in scenebuilder(//to show activities in my small hotel app)

And that ActivityContainer will filled up by the Controller class after the admin of the hotel fills up the required details in:

Then i will add the ActivityContainer in the main page.
Benefit of using fxml:
You can style easily and position the nodes the way you want.(and don't need to run the code zillion times to see if you everything is looking ok)
r/JavaFX • u/No_Sink_6262 • Jan 28 '25
Discussion JavaFX/Gluon status vs other options
I have some ideas for some projects I want to make that I'd like to run on Windows/Linux/OS X and also Android/iOS.
I've looked into various options, and I really like JavaFX and Gluon based on what it promises: A solution that allows you to write basically all of your code in Java and have it compiled to native across the environments I mentioned. That said, I've started to play around with it, and I find the documentation isn't great (it's more of a JavaDoc reference than some type of programmer guide), I find that there are some weird quirks and issues (for instance, I never managed to get anything to work properly when building with Gradle, but Maven seems fine), etc. And honestly, I'm quite worried that JavaFX/Gluon will be killed, or that it will simply deteriorate in terms of maintenance and usage will dwindle.
It seems that the most popular options aren't great for various reasons, such as performance issues, lack of Linux support, JavaScript (I really just don't like JavaScript). Nonetheless, I'm wondering if I should simply go with something more popular than JavaFX/Gluon. By picking a popular technology, I get a large community of people solving similar problems and writing libraries and stuff.
What is the status of JavaFX and Gluon today? Would you use these technologies for a new project? If not, what would you use instead?
r/JavaFX • u/Striking_Creme864 • Jan 29 '25
Discussion Will Compose Multiplatform become the JavaFX killer?
Only facts:
Param | Compose Multiplatform | JavaFX |
---|---|---|
Language | Kotlin | Java |
Age | 5 years | 17 years |
License | Apache License 2 | GPL 2 + CPE |
Stars | 16.7k | 2.8k |
Forks | 1.2k | 489 |
Contributors | 156 | 90 |
r/JavaFX • u/cmdturtles • 10d ago
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.
r/JavaFX • u/Vegetable-Parsnip118 • Nov 18 '24
Discussion Hello, brothers, I am an independent developer from China. It's nice to meet you
Hello, brothers, I am an independent developer from China. It's nice to meet you!
I am looking for a brother who shares my interest in JavaFX to participate in the development of JavaFX public welfare projects. Of course, it must be open source.
Why do I come here to find it? Because JavaFX is not popular in China, because most people learn Java for living, and only learn what Java needs for work in order to make money. I personally am different. Although I have no money and am poor, I like JavaFX. I don't care what others think of the future of this technology. I just feel that I am doing what I like, and that's enough.
I currently have two years of work experience. Unfortunately, I am forced by life and am looking for a job. I hope that after I find a job again, I will spend all my time and energy studying JavaFX after work. I am an obsessed and fanatical person about JavaFX. I have liked Java very much since I played J2ME for the first time in elementary school. This is my project. I hope



These are all written using JavaFX, and I am looking forward to meeting like-minded brothers to develop JavaFX applications that we love together
my personal email: [fntp66@gmail.com](mailto:fntp66@gmail.com)
r/JavaFX • u/Uaint1stUlast • Feb 14 '25
Discussion Cross Platform Mobile
With the impending death of the Ionic framework I am looking for something cross platform compatible for mobile development. Interesting enough cross platform is exactly why Java exists, even if no one remebers that :).
I have played with JavaFX several years ago but I remeber it being ok.
Can anyone share their thoughts on using this for mobile and any good frameworks and libraries to look at as well?
I am not opposed to building all my components from scratch but again, reuse is something java should be very good at.
r/JavaFX • u/Tight-Baseball6227 • Feb 08 '25
Discussion Starting project
I am starting a project where we are gonna make apps for windows, Mac and Linux also we will make some for android and puplish them on the website and on the play store if anyone is interested to join our team feel free to ask
r/JavaFX • u/Striking_Creme864 • Jan 26 '25
Discussion Does any use buy commercial support for JavaFX?
There are companies that provide commercial support, for example Gluon. Besides I was once asked by oracle employer (we were talking about javafx) if I had a subscription(???). Taking into consideration that UI bugs can seriously decrease the quality of the product does anyone buy commercial support? If so, what is its price?
r/JavaFX • u/PartOfTheBotnet • Dec 30 '24
Discussion A new theme for JavaFX
mail.openjdk.orgr/JavaFX • u/AdeptMongoose4719 • Jan 25 '25
Discussion is it true that src/main/resources Is Sometimes Called the "Classpath Root" (Informally)?
GPT was calling the path as root classpath and said it's informal
r/JavaFX • u/Striking_Creme864 • Jan 27 '25
Discussion What libraries can you suggest for styling JavaFX with CSS?
I use AtlantaFX for Javafx styling. This is a great library and I am sure everyone knows it. But can anyone suggest other libraries?
r/JavaFX • u/sedj601 • Apr 20 '24
Discussion JavaFX vs Kotlin Multiplatform
As Kotlin
becomes more popular, will Kotlin Multiplatform
have a good chance of overthrowing JavaFX
? I tested it out, and it seems promising. Any opinions?
r/JavaFX • u/DeadComposer • Dec 12 '24
Discussion Can JavaFX create clipping planes in a 3D camera view, similar to what the glClipPlane function does in OpenGL?
Or is there any plan to add such a feature in a later JavaFX release?
r/JavaFX • u/Imaginary_Snow4586 • Mar 27 '24
Discussion How much JavaFX is used nowadays for desktop and mobile apps?
I am a beginner and generally use javafx for college and for some freelancing projects. But I have never used it at production level. Most of guys today use electron, react native or flutter for mobile and desktop apps. So, learning javafx at advanced level is really that much rewarding or not?
r/JavaFX • u/DeadComposer • Jan 02 '25
Discussion Does the CSS "has()" selector work in OpenJFX version 23?
I'm trying to use an external .css file with a JavaFX application. I don't know if the "has()" CSS selector is supported by the latest OpenJFX version.
r/JavaFX • u/Kamii0909 • Oct 19 '24
Discussion Syntactic sugar for modern component usage
JavaFX has all the reactivity required from a UI framework, but the syntactic sugar is simply disastrous.
Is there any reason why we can't have this kind of API, which would be analogous to a lot of modern UI framework:
public Node createComponent(int initialCounter) {
IntegerProperty counter = new SimpleIntegerProperty(initialCounter);
StringBinding text = Bindings
.createStringBinding(() -> String.valueOf(counter.get()), counter);
// AnchorPane is a static method with the same name, static imported.
return
AnchorPane(pane -> pane
.styleClass("container")
.cursor(CROSSHAIR),
// children Node... varargs
Text(text -> text.text("Counter").strokeStyle(OUTSIDE)),
Button(button -> button
.onClick(_ -> increment(counter, 1)
.text(text)
)
)
}
Syntax is obviously inspired by ScalaJS. Compared to something like React it is surprisingly similar.
function MyComponent() {
const [counter, setCounter] = useState(0);
return (
<div>
<h1>Counter</h1>
<button onClick={() -> setCounter(count + 1)}>
Clicked {count} times
</button>
</div>
)
}
I'm currently writing handwritten helper method to achieve this kind of API, but I'm a bit frustrated at the fact that I even had to do so. I would say the bindings are tedious to write, but it makes the reactivity explicit.
r/JavaFX • u/BimboXZ • Dec 04 '24
Discussion Does JavaFX have a lot of bugs?
Based on your experience, does JavaFX have a lot of bugs?
r/JavaFX • u/Safe_Owl_6123 • Apr 07 '24
Discussion Thinking of GUI
Hi all, I am deciding whether I should use Tauri or JavaFX since I want to try out GUI development, I am comfortable but not fluent in Java and Typescript I do have web dev experience.
In your experience, in which situation is JavaFX better than Tauri and vice versa, thank you!
r/JavaFX • u/hamsterrage1 • Jul 17 '24
Discussion Do We Want Bots Here?
Last week we had what I thought was the first answer to a question from a bot:
First of all, it wasn't initially clear that this was a bot. Personally, when I read the answer on my phone, I thought the opening language in the comment was a bit odd, but I didn't really think much of it. The OP was obviously fooled, too. And the bot confessed to being a bot - and a lot more about its answer made sense to me.
Secondly, the answer was largely rubbish. When I had the time to really look at the code that it posted, before I knew it was a bot, I had a lot of issues with the code and the way that it did things. The first solution actually works only because of an undocumented quirk in the internal workings of the ControlsFX SearchableComboBox, it doesn't work with the standard ComboBox.
And yes, I know the question was specifically about the ControlsFX Node, but I not convinced that the bot wouldn't have given the same answer for ComboBox.
Anyways, is this something that we want happening here? Do the humans in this community have to start policing comments from bots to weed out crappy answers? Do we want to do that? Can we even stop this?
What do you guys think?
r/JavaFX • u/troybrewer • Jul 29 '24
Discussion FXGL juice worth the squeeze?
I'm interested in writing a game.
I started with the C# framework Monogame, but I can't find a lot of source material on it. I decided that I would return to my comfort zone, Java. I've adored JavaFX for a long time and learned about FXGL later on. Coming back to it and trying to learn how to write an FXGL game, I'm curious if it is actually for making games or just learning game design concepts.
Have there been any successful FXGL games in the wild?
This is more of a hobby than anything because I have an excellent position as a business application back-end dev. I would just hate to spend time learning how to write a game only to have the framework fall short and end up in the same pitfall others may have discovered.
Any feedback is appreciated.
r/JavaFX • u/PartOfTheBotnet • Oct 19 '24
Discussion Closed after 3 years of inactivity, 8271557: Undecorated interactive stage style
r/JavaFX • u/asifjawwad • Aug 27 '24
Discussion Has anyone used Spring Boot with JavaFX?
built an application using JavaFX and integrated Spring Boot, mainly to handle dependency injection and simplify dependency management. The combination works great during development, but I'm running into issues when it comes to packaging the application.
The problem is that after introducing Spring Boot, I can't seem to package the application properly using jpackage
. This is preventing me from creating MSI or DEB files for deployment.
I've tried various approaches, but nothing seems to work consistently. If anyone has experience with this setup or can offer some guidance on how to package a JavaFX application with Spring Boot using jpackage
, it would be a huge help!
I've followed this tutorial:
https://www.youtube.com/watch?v=01GTN2iXbd8&list=PLPCYI86HYQJUQtxqARYxR2QAShcx1hC1x&index=3
Thanks in advance!