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 are the two key features of swing?
Is swing thread-safe?
What is java swing components?
What is java panel swing?
What are heavyweight components? What is lightweight component?
What is an event and what are the models available for event handling?
What are swing components?
Why should the implementation of any swing callback (like a listener) execute quickly?
Why swing components are called lightweight components?
What are the advantages of swing over awt?
What is java awt and swing?
What is layout in java swing?
What is event in java swing?
What is awt and swing?
What is swing in java javatpoint?