File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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
I agree. Here's the link:
subject: Difference between AWT and swings
It's not a secret anymore!