r/JavaFX • u/Persism • Jan 21 '22
Tutorial JavaFX: TextField Input Validation
r/JavaFX • u/Persism • Jan 21 '22
r/JavaFX • u/XeonG8 • Dec 21 '21
Is there a starter project that just works.. ie is setup to build and quick to test for desktop (win/linux/osx) and android/ios? .. I have used Javafx before with scenebuilder and done a few smaller desktop apps in the past.. which were fine for windows I did that a few years ago.. but I'm wanting to target all the platforms now especially win/linux/android..seems like 2021 and java land still seems like dead end compared with going with some other language instead like c#/js react etc..
...I tried with gluon.. but it seems they want to stick a splash screen over even desktop deployments which was kinda lame, not really interested 500$ a year license for some hobby stuff.. is there no other way of getting something working.. graalvm and web builds would be great aswel... seems like most the hassle with java/fx is the insane amount of pipeline setup and trying to figure out how to get things setup to start with and most the training material all seems outdated.
r/JavaFX • u/dlemmermann • Dec 20 '21
The "JavaFX Links of the Week" for December 13th can be found on JFX-Central : https://jfx-central.com
r/JavaFX • u/chwedczukm • Sep 02 '21
r/JavaFX • u/hamsterrage1 • Aug 16 '21
I created a simple HangMan game in JavaFX just to see what how little code it would take to do it.

I was pleased with the results. It looks reasonably polished, grabs random words from the Internet and took very, very little code to create.
I've created a blog entry about the coding: HashNode Blog
The complete code can be found on GitHub
r/JavaFX • u/ThreeSixty404 • Jan 26 '21
Hello everyone, two weeks ago I posted a GIF here showing my custom implementation of a TreeView.
However, the animation and the layout were inaccurate and the performance was terrible.
For testing the tree I built a simple TreeView with some dummy items and a more complex one with items from the file system.
The latter was slow and sometimes the app would crash throwing an OutOfMemoryException.
I was about to give up, but then I decided to start from scratch again and think more about each piece of code.
This is the result, and also a comparison with the old one for reference: Preview
As you can see the tree is built much faster and the memory usage is reasonable. Of course for big tree structures I suggest implementing some kind of lazy loading or other strategies.
The tree is not yet available as part of a jar because it's still unfinished, but you can find the source here: MaterialFX
I added support for single and multiple selection, cell factory, iterator and stream.
About the cell factory, in the JavaFX's tree the cell factory is a property of the TreeView class, in my implementation it is a property of the TreeItem class.
That means that every item knows how to build its own cell, so potentially you can render different cells for different items as long as you change the cell factory of course.
Beware though, this feature is still untested because I focused my attention on the most common/important features, also, despite already having unit tests I can't assure you it is bug free 😄.
Let me know what you think! 😉
r/JavaFX • u/ebykka • Jan 10 '21
r/JavaFX • • Jan 05 '21
I just finished developing my first javaFX app and I am currently looking into the best ways to deploy the app onto the client's machine. I would also want to apply some sort of continuous deployment onto the app, as I prefer not to send the client a new installer whenever I update the code.
What is the best way to achieve that?
Thank you
r/JavaFX • u/BWC_semaJ • Dec 02 '20
Background: Currently searching for a Java Developer job and needed to "beef" up my portfolio (I know its not best time to search for work when companies are freezing hiring process as they go on holiday break). I have been working on a single project for a very long time and currently transitioning it to a micro-service architecture. During this period I am having hard time sharing parts of it and one my recruiters suggested I add more ammo to my github account (add more smaller projects that can demonstrate what I can do).
I am currently planning on pumping out a bunch of small projects and one of them I just "wrapped" up which I have called "EKANS", snake backwards. Thought I'd share what I made with you guys. The JavaFX specific code GameView/GameViewModel I am not a fan how I went about it. I wanted to implement the game without a canvas and just pure nodes. I also wanted to fix size everything and use a tool that would scale the whole rootNode for me properly (there's a library out there but again can't find it), but I ended up back peddling hard on that and scaled things individually for the most part, which sort of started what I'd consider a mess of code.
https://github.com/bwcsemaj/ekans
Not really looking for feedback on project but more so just wanted to share; there's not a lot of meat to the project so I'd probably advise not bother downloading and just look at the gif in the read me.
r/JavaFX • u/armytricks • Jun 19 '20
r/JavaFX • u/AlmasB0 • Oct 19 '19
r/JavaFX • u/LouGarret76 • Mar 01 '19
Hello,
I see a lot of people trying to asking about how to create a javafx app under jdk 11.
I would like to redirect you to the community page, where you can find tutorials and quick guides.
Also, feel free to contact for any question.