heavy components means what?

Answer Posted / ranganathkini

Heavy components are GUI components which depend on a native
peer for displaying themselves. AWT uses heavy weight
components. This means that when u try to create a heavy
component, AWT realizes a native peer or creates a native
object and requests that native object to draw the component
using native APIs.

Heavy components are bad performes as they consume a lot of
system resources and have platform specific look and feel.
Also they are not fast as updates and notifications have to
pass thru several layers of method calls and callbacks to
get executed.

An alternative is the SWING GUI library which does not
depend on native objects for display, they use the Java 2D
API for drawing and display. These objects are much more
light weight and are very fast.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is finalize() function in java?

636


Why singleton is not thread safe?

659


How to split arraylist elements in java?

694


What do you mean by data type?

635


What is the platform?

614






Which is better singleton or static class?

595


What data type is string java?

632


Explain static nested classes ?

684


What is update method called?

759


What is java util collection?

660


What is the difference between an if statement and a switch statement?

754


What is difference between fileinputstream and filereader in java?

648


Can a class have an interface?

648


What is meant by class loader? How many types are there? When will we use them?

603


Is overriding possible in java?

588