Difference between ligt weight and heavy weight?

Answer Posted / suresh kumar

The Heavy weight components are drawn by the os when the
programs are executed.

For eg: AWT programs

So what happen is when we tried to the run that class file
of a AWT program, it will change its appearance because,
here the components are drawn the os again bt in another
system.

But the light weight components are by the java program
itself.

For eg: Swing programs.

So whenever we tried to run the class file in any system it
does not change its appearance

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why does JComponent have add() and remove() methods but Component does not?

557


What is sling swing?

532


What is swing framework in java?

547


How to render an html page using only swing.

589


Can a class be it?s own event handler? Explain how to implement this?

538






What is frame in java swing?

535


What are the different components that are used to show a container?

538


What does javax swing do?

540


How do you swing an applet?

612


What is an event and what are the models available for event handling?

542


What is the difference between swing and applet?

543


What are the containers available in swing?

523


What is a component in swing?

502


What is swing gui?

502


Which window contains the swing controls?

526