what is the difference between AWT and SWING what is the
advantage of using swing?
Answer Posted / muffy.jad@gmail.com
Swing is a more powerful alternative for awt.Swing is a set
of classes that provides more powerful and flexible
components than awt.In addition to components like
buttons,check boxes and labels they also provide additions
such as tabbed panes,scroll panes and tables.
The main difference between awt and swing is that swing
components are not implemented by platform-specific code,
instead they are written entirely in Java and therefore are
platform-independent.
swing includes more graphic components then awt.Ritesh sharma
AWT - Heavy weight component.
it will invoke native methods.
awt has main() method.
SWING - Light weight component.
It doesn't invoke native methods.
swing has not main()
| Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
Can static methods access instance variables in java?
What is the multi-catch block in java?
What is class forname used for?
Are arrays passed by reference in java?
What is math floor in java?
What is bitwise complement?
What is the difference between declaration and definition in java?
What are reference variables in java?
How to change value in arraylist java?
Why does java not support operator overloading?
What loop means?
Why do we need autoboxing in java?
What is pangram in java?
What are data structures in java?
What is included in core java?