• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why is Swing called lightweight?  RSS feed

 
Jaydeep Deshmukh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why is Swing called lightweight?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not all of Swing is lightweight. Swing contains lightweight and heavyweight components. Lightweight components are those that don't use the components of the underlying OS. In other words, a Swing component is lightweight if it is responsible for drawing itself.
 
Jaydeep Deshmukh
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, do u mean that JFrame is a heavyweight component since it inherits from Frame?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!