I am confused and don't know which to select: SWT/JFace or JavaFX. Which one is better? I know that SWT is native, but is JavaFX native or not? Is it important to use native UI, or is JavaFX the best choice?
That choice really depends on so many other things than the UI toolkits themselves. After all, you can implement almost the same look-n-feel with all the established UI toolkits - the APIs might be very, very different - but the results are not...
It is the environments that surrounds the toolkits that are important.
First and foremost, the main difference between SWT/JFace on one side and Swing or JavaFX on the other side, is the presence of the Eclipse application framework with the workbench and the associated services. And of cause OSGi... For me, that has made a big difference. Swing and JavaFX have something similar in the Java framework, but not nearly as developed.. in my view.
Oracle has stated that JavaFX 2.0 is the replacement for Swing. I would go with JavaFX for a new GUI client for windows.
This paragraph would help you what to choose. Because I read this from Java The Complete Reference Ninth Edition Book:
One question that naturally arises relating to JavaFX is this: Is JavaFX designed as a replacement for Swing? The answer is a qualified Yes. However, given the large amount of Swing legacy code and the legions of programmers who know how to program for Swing, Swing will be in use for a very long time. This is especially true for enterprise applications.Nevertheless, JavaFX has clearly been positioned as the platform of the future. It is expected that, over the next few years, JavaFX will supplant Swing for new projects. JavaFX is something that no Java programmer can afford to ignore.
© 2022 - 2024 — McMap. All rights reserved.