JavaFX 2 vs Swing for a pure Windows desktop app

后端 未结 2 1386
暗喜
暗喜 2020-12-24 12:53

I need to write a desktop app and its been a while since I started used Swing so will have a learning curve with either technology.

Are there any advantages in doing

2条回答
  •  一整个雨季
    2020-12-24 13:09

    Both are good options:

    • If you want a rich, graphically enhanced application, the features of JavaFX 2.0 may be very appealing. It is designed to give you a lot of creative control over your user experience and visuals. Just be sure that it is supported on your target platforms....
    • If you want a standard desktop application that runs on as many platforms as possible, then Swing is probably a safer choice (since Swing is guaranteed to be available as part of all modern Java distributions). It also has the advantage of more mature 3rd party libraries.

    Neither is likely to replace the other: they have slightly different target uses and will probably co-exist for many years to come.

提交回复
热议问题