This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Difference between AWT and swings Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Difference between AWT and swings" Watch "Difference between AWT and swings" New topic

Difference between AWT and swings

Raj Kumar Bindal
Ranch Hand

Joined: Apr 15, 2006
Posts: 418
Please tell me the differences between the two and why swings are called as light weight components while AWT is called as heavy weight component.
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

A lightweight component is one that does not have an associated native screen resource (called a peer), a heavywight component is one does have its own natove screen resource. See this for more information.

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Have you tried LearnNowOnline?
subject: Difference between AWT and swings