Difference between AWT and Swing compenents?

Answer Posted / narmada

Swing is a light weight component coz they dont have native resource of their own. It is based on MVC(Modal -View Controller)i.e its look and feel is independent of the hardware and OS.

AWT is a heavy weight component coz it is associated with its own resources. Since JVM helps in translating AWT calls to the appropriate OS , it is platform dependent.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use swing in java?

505


What is swing and its features in java?

484


Is swing still used?

492


Which containers use a border Layout as their default layout in swing?

558


Is swing thread-safe?

563






Why are swings considered lightweight?

541


What is java swing gui?

466


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

537


How does accessibility works in swings?

547


What is an on stage swing?

543


Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.

1749


What is sling swing?

530


What is difference between applet and swing?

533


What class is at the top of the AWT event hierarchy?

650


What is Java Swing?

595