开发者

GUI for a Java stand alone app. Should I use SWT or GWT?

开发者 https://www.devze.com 2023-01-24 03:42 出处:网络
//I\'m totally new at apps with GUI ,开发者_JAVA百科 please bear with me :) I\'m writing a new stand alone (meaning , no client/server) application in Java. I\'m trying to decide if I should use SWT
//I'm totally new at apps with GUI ,开发者_JAVA百科 please bear with me :)

I'm writing a new stand alone (meaning , no client/server) application in Java. I'm trying to decide if I should use SWT or GWT .

GWT seems to be very agile and have more capabilities (so says our UI designer) , but I find it hard to wrap my mind about using web tools for a non-web application

SWT seems like a more logical choice top me only because it's not web oriented

(Then again , these reasons might be totally irrelevant )

What do you think?


You appear to be confused. GWT is strictly for developing web apps. You cannot use it to build a regular desktop GUI.

If you want to write a regular Java GUI, your choices are

  • SWT
  • Swing
  • JavaFX

See e.g. these questions for a comparison:

Java Desktop application: SWT vs. Swing

JavaFX or Swing?.


GWT applications run in a browser, so there is definitely a "server" component, so you should ignore it.

What you mentioned are Java technologies. In that space, the two big players are SWT and Swing. I'd suggest you choose one of them, but know that Swing is older, and therefore more documented. If you want to play it "safe", choose Swing.

0

精彩评论

暂无评论...
验证码 换一张
取 消