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

Can we clone singleton object in java?

566


How variables are stored in memory?

541


what are three ways in which a thread can enter the waiting state? Or what are different ways in which a thread can enter the waiting state? : Java thread

523


List some important features of java 10 release?

515


What is a function in programming?

557






What are encapsulation, inheritance and polymorphism?

531


How are java objects passed to a method and what are native methods?

592


What is difference between core java and java ee?

476


What are the types of relation?

573


I don’t want my class to be inherited by any other class. What should I do?

579


How do you know if a value is nan?

568


Difference between == and .equals() ?

575


What are the limitations of procedural programming approach?

528


Is stringwriter thread safe?

554


What is a predicate method?

564