Wednesday, 5 December 2012

DIFFERENCE BETWEEN SWING AND AWT

        Hello friends after a long time osWorld is come back with some java concepts.Today i am going to tell you about swing and also explain basic difference between swing and abstract window toolkit(awt).
        Swing is fully featured user interface development kit for java applications.It is foundation of sun's java classes(jfc).It provides rich components of gui.It provides list control,table control,tree controls,buttons,and labels and also some another features.Java swing is also referred as java GUI(Graphical user Interface) Widget toolkit.Now let us see basic difference between java swing and awt(abstract window toolkit)

DIFFERENCE BETWEEN JAVA SWING AND AWT

AWT:-
              -It uses peer components of operating system
              -It is platform dependent thus as per operating system it looks differ.
              -It is heavy weight component 
              -It not provides pluggable look and feel
              -we must have to write a code for awt

SWING :-
               -Swing is platform independent Thus display management is same in different perating       
                 systems.
               -It is lightweight component
               -It provides pluggable look and feel.
              
        So friends this is basic concepts of Swing and Awt.for more concepts and practical examples of java stay in touch.If you have any quqry then mention in comments.Have a nice day.....

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...