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?

28th Apr 2017, 4:36 AM
Angel Aguirre
Angel Aguirre - avatar
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.
28th Apr 2017, 5:15 AM
1of3
1of3 - avatar
+ 2
You dont need a fxml at all. You can create all visual components in your code.
28th Apr 2017, 5:40 AM
T0nd3