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 is jpanel in java swing with example?

989


What is the function of lightweight components used in swing?

1036


Why does JComponent have add() and remove() methods but Component does not?

1007


What is content pane in swing?

957


What are the two key features of swing?

1022


What is the difference between a scrollbar and a jscrollpane ?

1346


Which method is used by the applet to recognize the height and width?

1093


Which method of the Component class is used to set the position and size of a component?

996


Why do we use swing in java?

982


What is a swing day?

1082


What is the difference between swing and awt in java?

990


What is the function of internal frame in swing?

1064


Which containers use a border Layout as their default layout in swing?

1042


What is import javax swing?

964


Which swing methods are thread-safe?

1121