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
How to render an html page using only swing.
Why do we use swing in java?
Why are swings considered lightweight?
What is sling swing?
When we should go for codebase in applet?
What is swing control?
What is layout in java swing?
What is jfc? What are the features of jfc?
How to generate bill in java swing?
Which types of components are used in designing swing based gui?
Where is java swing used?
Can a class be it?s own event handler? Explain how to implement this?
What is swing framework in java?
Explain the difference between swing and jsf.
What is actionlistener in java swing?