Results 1 to 5 of 5

Thread: what is the difference between Swing and Awt?

  1. #1
    Join Date
    Jan 2009
    Posts
    721

    what is the difference between Swing and Awt?

    Hi,
    I am new to programming language. I recently started learning java language. Yesterday our sir has given us assignment and there is one question like what is difference between Swing and Awt? I use various notes but I unable to write that difference. That's why I asked this question on this forum. So if you have any idea about this please help me.Thanks in advanced.

  2. #2
    Join Date
    Apr 2008
    Posts
    1,948

    Re: what is the difference between Swing and Awt?

    Following are the difference between Swing and Awt.

    1.AWT components are heavy weight components compared to Swing components .

    2.Swing components have transparent pixels on screen where as AWT components is have opaque pixel on screen.

    3.Swing components are non-rectangular where as AWT components are rectangular .

  3. #3
    Join Date
    May 2008
    Posts
    2,012

    Re: what is the difference between Swing and Awt?

    1. Awt component is one that is always associated with its own native screen resource where Swing component is one that "borrows" or get the screen resource of it's parents.

    2.swing components need javax.swing package while awt comonents need java.awt package.

  4. #4
    Join Date
    Jan 2009
    Posts
    55

    Re: what is the difference between Swing and Awt?

    1.Swing components is based on Model view Controller architetcure and for that reason it is independent of hardware Operating System while AWT components depends on hardware platform.

    2.AWT are Heavy Weight Components where Swings are Light Weight Components.

    3.Swing Components are the extension of Awt Components .

  5. #5
    Join Date
    May 2008
    Posts
    2,297

    Re: what is the difference between Swing and Awt?

    1. Swings components are faster than awt components.

    2.swings components are purely java made and they are platform independent whereas AWT compoents are platform dependent.

    3.swing has many advanced features than awt.

Similar Threads

  1. Jms + swing
    By Prince$O$Persia in forum Software Development
    Replies: 5
    Last Post: 24-07-2010, 03:30 AM
  2. What are JFC and Swing?
    By DANIEL 602 in forum Software Development
    Replies: 5
    Last Post: 14-02-2010, 04:11 AM
  3. Print in java using Swing
    By Sheenas in forum Software Development
    Replies: 3
    Last Post: 18-11-2009, 09:50 AM
  4. Java Swing and MySQL
    By shelton141 in forum Software Development
    Replies: 1
    Last Post: 22-09-2009, 08:50 AM
  5. Message Box example for Java Swing
    By Visala28 in forum Software Development
    Replies: 3
    Last Post: 31-07-2009, 05:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,679,637.53351 seconds with 17 queries