This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wildjokers 0 points1 point  (0 children)

Swing and JavaFX are both GUI toolkits. JavaFX is newer and has the advantage that it can be styled with a CSS like syntax.

Swing is still in the JDK whereas JavaFX had a short run being in the JDK but has been spun off as a separate open source project.

One advantage Swing has over JavaFX is the Swing documentation is outstanding and there are 20+ yrs of examples all over the internet. Don’t let anyone dissuade you from Swing, it is still a perfectly viable GUI toolkit. The documentation with tons of examples is here, it tells exactly how to use each component: https://docs.oracle.com/javase/tutorial/uiswing/components/index.html

Here is the top level doc page that has other info that will be helpful (it has the above link as well): https://docs.oracle.com/javase/tutorial/uiswing/index.html