Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX vs SWT? (Pros and Cons)

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?

like image 881
Milad Khajavi Avatar asked Nov 08 '11 08:11

Milad Khajavi


People also ask

Is JavaFX better than Swing?

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.

Does JavaFX replace 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.

Is Swing easier than JavaFX?

On older notebooks with integrated video Swing app starts and works much faster than JavaFX app.

Is Java Swing still used 2021?

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.


1 Answers

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.

like image 162
Tonny Madsen Avatar answered Sep 26 '22 01:09

Tonny Madsen