• 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

AWT Vs.SWING

 
Ranch Hand
Posts: 428
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
What is basic difference between AWT 1.1, 1.2,1.3(API & Componentswise)
What is basic difference between SWING 1.1,1.2,1.3(API & Componenetswise)
If you any document or link for website, please send me.

Thanks in advance,
Angela
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
All AWT components are heavyweight components.
Heavyweight Components :- are those components which have a native peer classes( for a particular platform )associated with it.
These component do not know how to draw themselves. Whenever a heavyweight component is drawn/redrawn it sends a signal to it's peer class and this peer class draws the component with native look and feel. A button in windows always has the same look and feel. The same button in Motif will look like Motif buttons do.
So the look and feel of these component are tightly bound with the platform, which uses more system resources.
Swing components are Lightweight.
Lightweight components :- These components that know how to draw themselves so no peer classes are involved and hence they can have a consistant look and feel. Moreover since there is no operating system involvement these are more efficient.
Here is a short tutorial on the differences: http://developer.java.sun.com/developer/onlineTraining/GUI/Swing1/

[This message has been edited by Cindy Glass (edited January 23, 2001).]
 
reply
    Bookmark Topic Watch Topic
  • New Topic