Difference between AWT and Swing compenents?
Answers were Sorted based on User's Feedback
Answer / arshad ahmad
Awt is Heavy Weight Component and Swing is light Weight
component.Swing component takes less memory rather than awt
component.Swing Component look & feel is much beeter than
awt.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / bikas
1. Awt component is heavyweight whereas Swing is
lightweight.
2.Awt Component has platform dependent look and feel
whereas Swing has crossplatformed look and feel.
| Is This Answer Correct ? | 1 Yes | 0 No |
Answer / 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 |
What is the use of swing in java?
Is swing part of core java?
Who created the swing?
Why would you use swingutilities.invokeandwait or swingutilities.invokelater?
What is jfc swing in java?
how can u handle runtime exceptions in java plz explain with examples briefly?
What is the use of JTree?
I want to change the appearance of Frame in Runtime, what class can be used to do this?
What is the purpose of serialization in swings?
What is swing and awt in java?
Why swing components are called lightweight components?
What is the base class for all swing components?