+ 2

Swing

what's the deference between Swing and javaFX. And which one should i use.

5th Dec 2016, 9:48 PM
JINA DIAM
JINA DIAM - avatar
1 Réponse
+ 3
JavaFX has introduced several improvements over Swing, such as, possibility to markup UIs with FXML, and theming with CSS. It has great potential to write a modular, clean & maintainable code. This is highly dependent on your skills and the tools you use.For swing, various IDEs offer tools for rapid development. The best I personally found is the GUI builder in NetBeans.JavaFX has support from various IDEs as well, though not as mature as the support Swing has at the moment. However, its support for markup in FXML & CSS make GUI development on JavaFX faster and intuitive. JavaFX is very friendly with MVC pattern, and you can cleanly separate your work as: presentation (FXML, CSS), models(Java, domain objects) and logic(Java).IMHO, the MVC support in Swing isn't very appealing. The flow you'll see across various components lacks consistency.
5th Dec 2016, 9:57 PM
Vipul Walia
Vipul Walia - avatar