what is the difference between java desktop application and javafx?

前端 未结 4 604
无人及你
无人及你 2021-02-05 23:51

What is the difference between a \"normal\" Java desktop application (with AWT or Swing), and a Java application built with JavaFX?

What are the advantages and disadvant

4条回答
  •  迷失自我
    2021-02-06 00:13

    JavaFX is improving faster and becoming better to use than Swing.

    JavaFX is a framework for the GUI with several benefits, including animations and CSS integration. This can help in creating a lot of the 2D and near-3D stuff you can see in CSS3.

    JavaFX is pure Java, so you need not learn another language other than the good old Java you know. JavaFX is my favorite GUI platform for desktop and enterprise, and I only use Swing when dealing with older application environments (i.e. integrating with hardware). The only disadvantage I know of is that the scene builder is not yet integrated, and using the controls and API requires some brain work, but this is minor.

    For me there is no difference between Java desktop and JavaFX since JavaFX can be used to develop desktop apps, enterprise apps, and applets. You can look into the current JavaFX versions to check out its capabilities.

提交回复
热议问题