Netbeans JSR-296, Swing and JavaFX, what should we use now?

I'm starting to learn Java development (I used to develop in C ++), I use some old materials, however I would also like to be aware of Java development and recommendations.

I did some research on Swing and JavaFX. I found out that the development of the JavaFX script has stopped, however version 2 of FX is under development, so I'm not sure that it will end up with the thought that the script is the main part of the standard.

When using Netbeans, I found that further development of Swing should stop, as well as support for Netbeans (JSR-296). Netbeans recommends switching to the Netbeans platform API, which I am reluctant to do, because I want to learn Java as a true cross-platform language and not be attached to any data.

This leads me to ask the question, what is the preferred new approach to developing GUIs in the Java world?

+6
java swing javafx netbeans jsr296
source share
2 answers

You will probably find a Wikipedia page about the JSR-296 .

Swing is an API that allows you to work with various graphical โ€œcontrolsโ€. You can organize them - this is any number of ways to create a graphical interface for your application.

The Swing Application Framework (JSR-296) was and was trying to create an API that would create a โ€œstandardโ€ way of writing applications that Swing would use to represent the user interface.

The NetBeans platform is another effort with similar goals to the JSR-296 ... although it covers some other areas, such as modularity. NetBeans IDE is built on the NetBeans platform. The NetBeans platform uses the Swing API to represent the user interface.

SWT is an API with the same level of abstraction as Swing.

The Eclipse Rich Client Platform (Eclipse RCP) is another application framework. RCP is based on SWT. The Eclipse IDE is based on the RCP Eclipse.

You should know that:

  • You do not need to use the NetBeans IDE to create an application on the NetBeans platform.

  • You do not need to use the Eclipse IDE to create an application based on RCP Eclipse.

+2
source share

Swing (Java) or SWT (Eclipse) are both very lively.

JavaFX should be considered a failed Sun distraction (now Oracle).

0
source share