• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Light weight Componets

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi folks,
What is Lightweight component and heavyweight component.
Bye vinay
 
author
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A heavyweight component is a component that has a direct tie to a native component of the OS that that the JVM is running on. This is refered to as a "Peer" relationship. So when you have a java.awt.Frame it is dependent upon a native Frame. This allowed for the quick crossplatform development of the eary Java foundation classes.
A lightweight is a newer implementation wherein the component is self-contained within the JVM and does not rely on a peer. Have a look here for a few more details.
http://nauseum.org/docs/lightweight/lightweight-2.html#ss2.1
Sean
 
Sean MacLean
author
Posts: 621
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
A heavyweight component is a component that has a direct tie to a native component of the OS that that the JVM is running on. This is refered to as a "Peer" relationship. So when you have a java.awt.Frame it is dependent upon a native Frame. This allowed for the quick crossplatform development of the eary Java foundation classes.
A lightweight is a newer implementation wherein the component is self-contained within the JVM and does not rely on a peer. Have a look here for a few more details.
http://nauseum.org/docs/lightweight/lightweight-2.html#ss2.1
Sean
 
what if we put solar panels on top of the semi truck trailer? That could power this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic