Results 1 to 2 of 2
  1. #1
    makpandian's Avatar
    makpandian is online now Senior Member
    Join Date
    Dec 2008
    Location
    Chennai
    Posts
    444
    Rep Power
    6

    Default difference between swing and swt?

    can any one explain what is the differece between java swing GUI programs
    and SWT GUI programs?

    is SWT a alternative for java AWT?

    regards
    mak.

  2. #2
    jbender is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default Swing vs. SWT

    There is a good article at: developer.com/java/other/article.php/10936_2179061_1

    Basically Swing came first and it was written by Sun. Every widget is emulated, ie. not native OS code. The first few versions were not very fast and sometimes didn't match the look and feel of the OS. IBM came along with Eclipse and wanted a faster, more native looking set of widgets and they came up with SWT. They also emulate widgets when not available on the OS like Tree or Table widgets. In the meantime Sun continued to improve Swing and there are many arguments as to which is better.

    IMHO Swing is much richer and easier to use, but if you are writing plugins for Eclipse or absolutely need the speed advantage, you'll need to use SWT. The API's are similar but different enough to cause a fairly steep learning curve when switching between the two. Swing does have more features than SWT and is my preferred choice.

Similar Threads

  1. Difference between Javabeans and EJB
    By winkodes in forum Enterprise JavaBeans (EJB)
    Replies: 2
    Last Post: 03-18-2009, 02:21 PM
  2. difference
    By nishant in forum New To Java
    Replies: 2
    Last Post: 09-17-2008, 06:04 PM
  3. Difference between http and ftp
    By islamfunny in forum CLDC and MIDP
    Replies: 6
    Last Post: 08-14-2008, 07:12 AM
  4. Difference between ASP and JSP
    By barney in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 08-07-2007, 07:15 AM
  5. difference between this and super
    By mrark in forum New To Java
    Replies: 1
    Last Post: 06-27-2007, 05:23 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
  •