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
Which swing methods are thread-safe?
What does javax swing do?
Why swing is better than awt?
What are the two key features of swing?
Which window contains the swing controls?
What is the difference between applications and applets?
What is content pane in swing?
Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.
What are the advantages of the event-delegation model over the event-inheritance model?
What is the function of abstractaction class?
What is the function of lightweight components used in swing?
What is the relationship between clipping and repainting?
How to perform action on button in java swing?
What is the design pattern that java uses for all swing components ?
What are the advantage of swing over awt?