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

How to render an html page using only swing.

589


Why do we use swing in java?

506


Why are swings considered lightweight?

542


What is sling swing?

532


When we should go for codebase in applet?

616






What is swing control?

507


What is layout in java swing?

531


What is jfc? What are the features of jfc?

616


How to generate bill in java swing?

678


Which types of components are used in designing swing based gui?

525


Where is java swing used?

579


Can a class be it?s own event handler? Explain how to implement this?

538


What is swing framework in java?

547


Explain the difference between swing and jsf.

610


What is actionlistener in java swing?

533