Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    psp
    psp is offline
    New Coder
    Join Date
    Mar 2003
    Location
    CA
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Difference between Java AWT and Swing

    Hello,

    I am trying to find out the difference between AWT and Swing.
    I read somewhere that the Swing components are implemented with absolutely no native code.
    I could not understand the meaning of "native code".Can somebody explain its meaning?

    Thank you.

  • #2
    New Coder
    Join Date
    Mar 2003
    Posts
    62
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Here is an excerpt from Grant Palmer's massive Java Programmer's Reference:

    The classes contained in the java.awt package provide a basic capability to create graphical user interfaces, but the scope of the tools contained in java.awt is limited. Furthermore, the actual implementation of the components is done in a language other than Java, and the look and behavior of the components is somewhat dependent on the runtime platform's native environment. AWT components might act slightly differently on a UNIX system than they would on a PC.

    The Swing classes are the next-generation (Java 2) GUI classes. They provide a number of new components including trees, tables, and tooltips, etc. Swing components are written entirely in Java...

    Does this help? If you don't have his reference, at least take a look at it. You probably won't need another for some time. It runs about $35 and contains over 1200 pages of solid examples and references.

  • #3
    psp
    psp is offline
    New Coder
    Join Date
    Mar 2003
    Location
    CA
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks for the explanation.Now I understand it!!!

  • #4
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thumbs up AWT and Swing

    Visit below website to get the detailed answer of your question:

    http://shivasoft.in/view_tutorial.php?id=99

    Thanks,
    Jitendra


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •