Forums Register Login

AWT Vs.SWING

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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).]
His brain is the size of a cherry pit! About the size of this ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 837 times.
Similar Threads
AWT Vs SWING
check box
Diff between Hinernate Template and HibernateDAOSupport ?
API vs Framework
swing and awt
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 02:31:59.