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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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
It is sorta covered in the JavaRanch Style Guide.
subject: Difference between AWT and swings