0
What are the main differences between Javafx and Swing to build GUI? . Excuses for my english
What are the main differences between Javafx and Swing to build GUI?
2 Respostas
+ 2
JavaFX uses xml definition files for describing the GUI. This is much easier to read than doing the structure in Java code.
The possible design in FX is more flexible, like if you want rounds widgets etc.
There is some ceremony you have to go through to get the application running and link your definition files with the controller class. That could have been made easier,but you can pretty much copy paste from the tutorials.
And one more thing : Read up on Optional<T> before you use an FX Dialog. Wrapping possible values in option is nice for safety, but when I first saw it there, I was mildly confused.
+ 2
You dont need a fxml at all. You can create all visual components in your code.