• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Swing - Lightweight ?

 
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Author
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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"
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic