Open paulszefer opened 7 years ago
Which did you find faster or easier to work with?
It took a bit of time to learn the structure of JavaFX, but once I got going, JavaFX felt easier to work with.
I think moving from Swing to FX is a good idea. I think it makes sense. An application contains a stage. A stage contains one or more scenes. Scenes essentially contain node graphs. It's all very logical to me! I also like how we have 3 different ways to attach listeners to event generators. I think lambda is lovely.
JavaFX's layout system feels similar to that of HTML, which has let me tap into webpage layout concepts to make it easier to understand. It was also much easier to understand how to manipulate a Grid Pane than the GridBagLayout that I was fiddling with in Swing.
The basic layout of the GUI using Swing:
The basic layout of the GUI using JavaFX:
The improved JavaFX GUI: