This blog is about providing theory as well as simple executable codes of different programming languages such as java, C, C++, and web programming, etc. This blog will be helpful to the IT students to learn about programming.

Friday, August 27, 2021

Difference between AWT and Swing

 Difference between AWT and Swing

Both java AWT and Java Swing are Java API which is used to develop GUI or window-based applications in java.

The difference between Java AWT and Java Swing are given below:

Note:- Swing is the extension of AWT and not the replacement.

AWT

Swing

1.  AWT components are platform dependent.  

2.  The look and feel of AWT component vary from one operating system (OS) to another. 

3.  AWT components do not support the facility of pluggable look and feel. 

4.   AWT components are heavy weight. 

 5.  AWT components are based on peer         architecture. 

6.    AWT frame doesn’t  support any default close operation (hiding of frame) on the close button or its title bar.

1.       Swing components are platform independent.


2.       The look and feel of swing components remain same across the platform.


3.       Swing components support pluggable look and feel.


4.       Swing components are light weight.


5.       Swing components are based on MVC architecture.


6.       Swing frame support a default close operation (hiding of frame) on the close button or its title bar.

No comments:

Post a Comment

If you have any doubts, please let me know

Slider Widget