aspose file tools*
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 Java 8 in Action this week in the Java 8 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: 417
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
Don't get me started about those stupid light bulbs.
subject: Difference between AWT and swings
Similar Threads
Diff between light weight & heavyweight comp.
awt vs swings
Interview questions