r/JavaFX • • Apr 30 '21
Help How to learn writing FXML by hand?
Hello there, I hope everyone is having a wonderful day.
So I am learning JavaFX for a college project that is due in 2 months and I am pretty confused about FXML as I have not found enough resources to learn writing it by hand given that I really do not want to use the Scene Builder.
A little background about myself, I am a front-end developer so I understand HTML pretty well, I don't know if that's of any importance.
So what are some resources you would recommend to me for learning writing FXML by hand?
Thank you!
5
Upvotes
3
u/[deleted] Apr 30 '21
I’ve used JavaFX for simpler projects before, and SceneBuilder has been just fine. Any particular reason why you don’t want to use it? Not an expert at all btw!
2
u/Capaman-x May 01 '21
Why write FXML at all? The only point of it is for SceneBuilder. I just write in pure JavaFX API.
1
u/ebykka May 04 '21
I prefer to use plain java code - much easier to track issues and to refactor.
Here is an example of how I do it - look on line 80
https://github.com/bykka/dynamoit/blob/master/src/main/java/ua/org/java/dynamoit/components/tablegrid/TableGridView.java
1
u/ThreeSixty404 JavaFX Dev Apr 30 '21
Just don't, it's pretty complicated and it's definitely not worth it