Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between ligt weight and heavy weight?

Answer Posted / mukesh jha

A heavyweight component relies on native code for its visual
representation so it is drawn by the underlying operating
system. Heavyweight components are those defined in the
java.awt package

A lightweight component does not rely on native code - it is
implemented entirely in Java. This means that a lightweight
componet is entirely portable.

One consequence of the difference between heavyweight and
lightweight components is that mixing them in the same
application can cause trouble because they are drawn in
different ways. You should avoid mixing them.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two key features of swing?

1017


Is swing thread-safe?

1000


What is java swing components?

1104


What is java panel swing?

997


What are heavyweight components? What is lightweight component?

978


What is an event and what are the models available for event handling?

998


What are swing components?

1076


Why should the implementation of any swing callback (like a listener) execute quickly?

1023


Why swing components are called lightweight components?

962


What are the advantages of swing over awt?

906


What is java awt and swing?

1083


What is layout in java swing?

998


What is event in java swing?

963


What is awt and swing?

978


What is swing in java javatpoint?

1033