• 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

SWT or AWT

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One reader on amazon.com who gives his feedback laments that SWT is not covered. He preferred SWT over AWT. I am not yet an advanced mobile application developer. What exactly is the difference between SWT and AWT, and why is SWT better, or is this a matter of opinion?

Volker
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here I got some tips for u about the advantages of Swing... Hope it might be useful for u...


What is SwingWT?
SwingWT is a 100% pure Java library which very closely resembles the interface of Swing and AWT. The difference is that instead of using the Swing/AWT libraries, it drives native peer widgets from SWT.
This offers many benefits:
-More responsive GUIs and faster startup times
-Less RAM usage for applications
-Many developers prefer the Swing API
-Existing Swing applications don't need to be recoded
-Mature Swing UI designers can be used
-Developers deploying to *nix/Win32 can compile natively with GCJ and the applications can be distributed without a VM. Linux distribution makers could package many existing Java/Swing applications that previously could not be distributed in workable state.
-SWT components can be directly accessed through the API, allowing mix and match (make Eclipse plugins with Swing!)
-Use Swing on mobile devices!
-The best of both worlds! New Swing components for JClosableTabbedPane, JCoolBar..

 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is one of biggest religious war in the Java world. Basically:
AWT and Swing are JCP standards and officially part of the JDK for UI development. AWT is also available on all Java powered PDAs.
SWT is IBM's Java UI package. It is tightly integrated with the native OS and hence provides better performance and look-and-feel. But it is not as portable as AWT/Swing.
IBM produces a Java runtime on PDAs. They support SWT and on top of that, the standard AWT. I do not cover SWT since it is not universal and my book is not about the UI anyway.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic