Results 1 to 6 of 6
Like Tree5Likes
  • 1 Post By gimbal2
  • 2 Post By KevinWorkman
  • 1 Post By superhaNds
  • 1 Post By gimbal2

Thread: Which GUI framework is better?

  1. #1
    ami64 is offline Member
    Join Date
    Jun 2014
    Posts
    12
    Rep Power
    0

    Default Which GUI framework is better?

    hi every body.
    I'm going to learn GUI but I do not know which of the Java GUI framework is better(AWT/Swing/SWT/JFace.....).
    I mean a GUI which has beautiful preference, compatible with different devices and ...

  2. #2
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: Which GUI framework is better?

    If you go for "beauty" then you're missing the winner: JavaFX 2.

    AWT is very old, avoid it.
    Swing is very old but still has quite a following, and can be made "beautiful" with the right third party look & feel
    SWT is very old, but some people like it. It is what is used to build the GUI of Eclipse.

    JavaFX 2 is the "latest and greatest" GUI toolkit which is built for the modern era.

    I don't get the "compatible with different devices" comment though. That would make it seem you are talking about mobile devices, which can only mean you're talking about Android in the context of Java. Then you don't really have a choice of GUI toolkit, you use what the Android SDK provides you.
    ami64 likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  3. #3
    ami64 is offline Member
    Join Date
    Jun 2014
    Posts
    12
    Rep Power
    0

    Default Re: Which GUI framework is better?

    Thank you gimbal2 for reply .
    So yo mean JavaFX is the best .

  4. #4
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,041
    Rep Power
    10

    Default Re: Which GUI framework is better?

    Quote Originally Posted by ami64 View Post
    So yo mean JavaFX is the best .
    It depends what you mean by "best". Swing is a tried-and-true technology with tons of resources, tutorials, etc. JavaFX is the newest, so it's a bit flashier but might be harder to get into because there are fewer educational resources devoted to it.
    gimbal2 and ami64 like this.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  5. #5
    superhaNds is offline Senior Member
    Join Date
    Apr 2013
    Location
    Sweden
    Posts
    268
    Rep Power
    2

    Default Re: Which GUI framework is better?

    Quote Originally Posted by KevinWorkman View Post
    but might be harder to get into because there are fewer educational resources devoted to it.
    This is very true.

    I recently worked for the first time in JavaFX with FXML and it's not easy at first due to the lack of examples/resources etc.
    Lots of experimenting was necessary to find my way around the different things I wanted to do. But after I got the hang of it, the process was easier.

    In the end, I managed to complete everything and the result was very good indeed. I don't think I will ever use swing again.
    ami64 likes this.

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,365
    Rep Power
    6

    Default Re: Which GUI framework is better?

    The problem is that Swing relies on Java2D which is basically a very low priority fix nowadays if there is a problem; if there is a conflict between a modern OS windowing toolkit, say Windows 8, you can wait a long time for that to be resolved unless someone outside of Oracle picks it up in OpenJDK and Oracle is kind enough to push the fix to a standard runtime patch release in a timely manner.

    There is a second question though: if this is for learning purposes, it might be better to start with Swing given what is rightfully said; there are far more resources available to learn from. You can always jump to JavaFX later if you feel the need.
    ami64 likes this.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

Similar Threads

  1. Which framework to use?!
    By Stuiter in forum New To Java
    Replies: 12
    Last Post: 09-06-2013, 03:52 PM
  2. K-FRamework 3.0
    By java software in forum Java Software
    Replies: 0
    Last Post: 04-06-2013, 10:03 AM
  3. What framework should I use?
    By hartmannr76 in forum Struts
    Replies: 1
    Last Post: 02-08-2012, 12:21 PM
  4. ASN.1 Framework
    By kewlkeny in forum New To Java
    Replies: 2
    Last Post: 12-28-2011, 09:51 PM
  5. NIO Framework 1.0
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 08-20-2008, 03:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •