The difference between AWT and Swing in Java

The difference between AWT and Swing in Java

Here you will find out about the difference between AWT and Swing in Java.

AWT and Swing both are utilized to make a GUI interface in Java. Them two are utilized

to perform practically the same work, still, they contrast from one another. In this instructional exercise, I have

shared about certain differences among AWT and Swing.

AWT Swing
AWT represents the Abstract Window Toolkit.Swing is a piece of Java Foundation Class (JFC).
AWT segments are overwhelming weight.Swing segments are lightweight.
AWT segments are stage subordinate so there look and feel changes as per OS.Swing segments are stage free so there look and feel stays steady.
AWT parts are not awesome in look and feel when contrasted with Swing segments. See the catch in beneath picture, its look isn’t great as catch made utilizing Swing.Swing segments are better in look and feel when contrasted with AWT. See the catch in underneath picture, its look is superior to anything button made utilizing AWT.

In the event that you think about some other difference among AWT and Swing than please notice it by remarking underneath.

Leave a Comment

error: Alert: Content is protected!!