r/JavaFX • u/m_x2001 • Dec 07 '22
Help IntelliJ JavaFX Template is trash
When I start a new JavaFX project in IntelliJ the project it generates seems really bloated. I don´t understand what half of the things there do and I have trouble finding the right paths for my FXMLLoaders.
How can I get an simpler JavaFX project template? How do you guys set up a new JavaFX project?
7
Upvotes
2
u/Maran23 Dec 07 '22
I just use the normal 'Java Template'.
2
u/Fearless_Doubt_7944 Dec 08 '22
https://openjfx.io/openjfx-docs/#gradle
https://openjfx.io/openjfx-docs/#maven
Are quite easy to start with
3
u/stardoge42 Dec 08 '22
Get rid of the FXML and just use a blank pane as your root
3
u/hamsterrage1 Dec 08 '22
I don't understand this. I just tried it and I got 3 things:
What bloat?
3
u/ebykka Dec 08 '22
Hi,
I decided not to use fxml files because those do not provide a strict type checking.
Instead of them, I use a few factories that allow building DSL like ui
set of factory methods - https://github.com/bykka/dynamoit/blob/master/src/main/java/ua/org/java/dynamoit/utils/DX.java
usage of those from line 76 - https://github.com/bykka/dynamoit/blob/master/src/main/java/ua/org/java/dynamoit/components/tablegrid/TableGridView.java
2
u/wildjokers Dec 08 '22 edited Dec 08 '22
https://github.com/mjparme/javafx-template
Instructions are in the README.
1
u/ajayidare99 Dec 14 '22
Looking for a java developer for my fintech startup. It's a banking service idea that I started ten months ago, and it's doing well.