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

why applet is heavy weight and swing is called light weight?

 
sanjiv mohanty
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why applet is heavy weight and swing is called light weight?
 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Awt components are heavy weight and swing components are light weight

Awt components depends on local windowing while swing component does not

that's the reason



Enjoy
 
sinasi susam
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But JApplet exteds java.applet.Applet and java.applet.Applet extends java.awt.Panel

?
 
Sunil Kumar Gupta
Ranch Hand
Posts: 824
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sinasi is right...............

Each Project Swing applet or application needs at least one heavyweight container component (a JFrame, JWindow, JApplet, or JDialog).


:S
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic