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 the function of lightweight components used in swing?
Why does JComponent have add() and remove() methods but Component does not?
What is content pane in swing?
What are the two key features of swing?
What is the difference between a scrollbar and a jscrollpane ?
Which method is used by the applet to recognize the height and width?
Which method of the Component class is used to set the position and size of a component?
Why do we use swing in java?
What is a swing day?
What is the difference between swing and awt in java?
What is the function of internal frame in swing?
Which containers use a border Layout as their default layout in swing?
What is import javax swing?
Which swing methods are thread-safe?