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

How are destructors defined in java?

580


What is time complexity java?

544


Who is the owner of java?

545


Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)

857


What is vector capacity in java?

605






What is the difference between Java and C++?

619


What is struts in java?

584


What is remote method invocation (rmi)?

618


Explain the JDB in depth & command line.

577


Why does java have two ways to create child threads? Which way is better?

549


How to create a fecelet view?

568


What are bind parameters?

555


What exactly is a .class file?

581


What is a finally block?

568


What is parsing in java?

536