java - Is JavaFX GUI heavy for the performance? -


I'm learning Java FX, and it looks great, but it's too bad I got it, The GUI has been written in XML, and has been exported in the exact same way (not converted or converted), and XML is being read with the FXMLLoader , every time the window opens Up. Also, jawfx has much more features than swing (rotation, 3D, etc.). So my question is:

Is JavaFX quite heavy to perform compared to Java swing? If it is not so, how heavy is it?

In the early days of Java Fx, I had a large graph (tens of thousands or tens of nodes and edges) Tried to show, and found that it was slow compared to displaying the same graph structure in the swing. However, most user interfaces are much simpler than what I was showing, so any speed difference is irrelevant. From those early days, Oracle has worked a lot in creating JavaFX as Swift. Today's performance in JavaFX is very close to the performance of the swing.

Swing has a writing experience in switching to Java Fx:

The author says: Performance - our overall assumption is that performance in the form of JavaFX swing Level when it comes to collecting and rendering the screen with many components. And JavaFX provides better performance in the field of infection and animation (swing provides very limited functionality in this area) Overall, performance is not a problem.


Comments