user1659754
user1659754

Reputation: 53

Easiest gui toolkit to learn and use for java

I want to learn GUI development for java. Can anyone recommend me some easy to learn and use GUI widget toolkits. I would also want to know a good GUI designer for the toolkit. The toolkit should integrate well with gtk and qt . Thanks in advance!

Upvotes: 4

Views: 1714

Answers (1)

Mark Bramnik
Mark Bramnik

Reputation: 42511

Well, I don't really know why do you need an integration with gtk and qt. Basically there are 4 main options when you're talking about gui for the desktop in java.

  1. AWT - very outdated, don't use it unless you don't really need

  2. SWT - much better, you'll get ui that looks like Eclipse (its written with SWT). A lot of people claim that its faster than Swing (see option 3)

  3. Swing - a part of java standard libraries. Was developed as a replacment for AWT. Very solid (~12-13 years). Platform independent in implementation (your widgets look the same on all Operating systems). In modern java versions quite fast as well. Very flexible. I would recommend using Swing or SWT if you have to use java. I like Swing more but its solely my opinion. Drawbacks - 'as is' requires a lot of coding and you don't see how your page actually looks like (no mark up). Doesn't use any kind of scripting language. On top of Swing you can use stuff like Apache Pivot, but its entirely different story.

  4. Java FX. Developed as a 'next generation ui' platform. requires java fx compiler (its not a java code but something that compiles into bytecode). Looks very nice, and a great platform by itself, it can be considered as a competitor for Flex and Silverlight. The main drawback is that its not that widespread because became avaiable too late after its competitors. As a result it has a relatively small community.

I don't know about integration with QT/GTK so I can't tell you much on it

Hope this helps

Upvotes: 4

Related Questions