• Post Reply Bookmark Topic Watch Topic
  • New Topic

SWING

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Swing. What is the difference with AWT. How does one go about learning swing?
Thanks
 
paul wheaton
Trailboss
Posts: 22063
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing is a better GUI for Java.
When using AWT, your text fields, scroll bars, drop downs, etc. all look different on different platforms. So while everything might look good and work well on one platform, it might be awful on another. This is because the AWT uses the local operating system's GUI stuff.
Swing makes all of it's own components from scratch. So your components look the same on all platforms. Much higher probability that if your stuff works well on one platform, it will work well on all platforms.
Go to www.javaranch.com/books.html and check out the review on the swing book.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!