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
Can we clone singleton object in java?
How variables are stored in memory?
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
List some important features of java 10 release?
What is a function in programming?
What are encapsulation, inheritance and polymorphism?
How are java objects passed to a method and what are native methods?
What is difference between core java and java ee?
What are the types of relation?
I don’t want my class to be inherited by any other class. What should I do?
How do you know if a value is nan?
Difference between == and .equals() ?
What are the limitations of procedural programming approach?
Is stringwriter thread safe?
What is a predicate method?