Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between AWT and swings

 
Raj Kumar Bindal
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic