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 the history of java?

552


What is multithreading and its advantages?

579


What if constructor is protected in java?

563


What is the java virtual machine?

591


What is a 16 bit word?

569






Explain abstract class in java?

560


What is multi level inheritance in java?

563


How do you identify if jvm is 32-bit or 64-bit from java program?

540


Can a lock be acquired on a class in java programming?

536


How do you override a variable in java?

535


What is abstract class? Explain

599


What access modifiers can be used for variables?

589


What are kinds of processors?

573


What is logical variable?

518


What is the Difference between Final Class && Abstract Class?

619