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?
From a Java developer perspective, both technologies are highly useful in writing pluggable UI components. With its vast UI component library, Swing can provide added advantage to the developer, whereas when it comes to design modern and rich internet application, JavaFX can supersede Swing.
Show activity on this post. I had a Java Desktop Application in which graphical user interface had designed in swing. After we came to know that JavaFX replacing Swing We have replaced graphical user interface with JavaFX.
On older notebooks with integrated video Swing app starts and works much faster than JavaFX app.
Swing is still used heavily, and will continue to be for a long while -- after all, it was the only choice for Java for a loooong time. JavaFX , however, is refreshingly nice, and very-much-so worth learning.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With