• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse SWT vs Swing

 
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have just started using Eclipse from today. At first look, its simply great!
Would you clarify me whether there are any drawbacks of using SWT in Eclipse instead of Swing such as loosing platform independence or requiring some other jar files (possibly supplied with eclipse)?
I want all my programs to run in standard JRE from SUN.
 
Ashik Uzzaman
Ranch Hand
Posts: 2379
MySQL Database Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
After exploring half an hour, I came to the following decision.
  • To deploy SWT, swt.jar file is required to provide with the deployment package. As we are not reluctant to combine xalan.jar, xerces.jar, fop.jar etc, then we should be reluctant to add swt.jar file also. Is there any more file needed to be added?
  • SWT is based on JNI calls.
  • SWT is platform independent. May be there are a few exceptions, are there?

  •  
    Ranch Hand
    Posts: 2166
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi Ashik,
    a good starting point for swt are articles by IBM (really not easy to find).
    Come with information of internal workings and hands on coding instruction.
    here are good links:
    don't know that yet
    http://www-106.ibm.com/developerworks/java/library/os-ecjfw/
    2 part series (very good):
    http://www-106.ibm.com/developerworks/library/os-ecgui1/
    regards
    Axel
     
    Ashik Uzzaman
    Ranch Hand
    Posts: 2379
    MySQL Database Spring Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thank you Axel.
     
    Greenhorn
    Posts: 21
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Aside from swt.jar, you also need to deploy a library with the native part of swt, which is specific to each platform swt supports. For example, in windows there's a .dll, in Linux is a .so, etc.
    On a side note, there are some excellent newsgroups at the eclipse site. The address is news://www.eclipse.org. Free registration is required.
     
    Ashik Uzzaman
    Ranch Hand
    Posts: 2379
    MySQL Database Spring Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Stelian, thanks. Eclipse newsgroup community is so active and strong!
     
    reply
      Bookmark Topic Watch Topic
    • New Topic