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
What is jpanel in java swing with example?
What is content pane in swing?
Is swing an adjective?
How is multi-threading gets implemented using swing?
Why do we use swing in java?
Who created the swing?
Why swings are used in java?
What are the different types of layout managers used in swing?
What is the purpose of action interface in swing?
How to generate bill in java swing?
Which is better swing or awt?
How to render an html page using only swing.
What is swing gui?
What method is used to specify a container's layout?
What are the advantages of swing?