Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Swing - Lightweight ?  RSS feed

 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can someone explain the difference between terms "lightweight" and "heavyweight". Why is Swing considered lightwieght ? I have build few UI in Swing and they didn't seem lightweight to me at all. Anyone wants to comment on that ?
Thanks
 
John Zukowski
Author
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing is lightweight because everything is drawn within Java. Heavyweight components are native widgets of the operating system.
------------------
John Zukowski Author of "Definitive Guide to Swing for Java 2" and "Java Collections"
 
Chandar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
LightWeight:
Lightweight Components that are purely written In Java Code only.
It takes no peer classes
Heavyweight components:
Heavyweight components are that takes another's (OPerating Systems classes).
For example
if you draw a button in Windows it's look different.
in Motif draw a button it's look different.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!