• Recent Uploads

    DIFFERENCE B/W SWING AND AWT

    DIFFERENCE B/W SWING AND AWT:-



    AWT(Abstract window toolkit):-

    AWT extends for the abstract window toolkit and it is used to make gui(graphical user interface) based application in Java in a efficient manner . It can be used in the program during creation of application by using library java.awt.* 

    Java SWING :- 
    JAVA SWING is also called as Java foundation classes it is as well a feature of java that is used for to develop gui based application and this can be used by importing javax.swing.* class in program.

    Difference between AWT and Swing in java

    AWT
    Swing
    AWT stands for Abstract Window Toolkit.
    Swing is a part of Java Foundation Class (JFC).
    AWT components are heavy weighted.
    Swing components are light weight.
    AWT components are platform dependent so there look and feel changes according to OS.
    Swing components are platform independent so there look and feel remains constant.
    AWT components are not very good in appearance andfeel as compared to Swing components. See the button in below image, its look is not good as button created using Swing.

    Using awt components you have to done more things by yourself (in order to make them appear good)

    Components used in awt button ,text field ,check box etc
    Swing components are better in look and feel as compared to AWT. See the button in below image, its look is better than button created using AWT.

    Swing has them built in




    Components used in swing jbutton,jtextfield,jcheckbox
    Etc

    PLZ... Share This Site To Your Contacts.....




    With regards

    Team EveTech