The Artima Developer Community
Sponsored Link

Java Answers Forum
what is main difference between AWT and Swing

2 replies on 1 page. Most recent reply: Apr 25, 2002 2:37 AM by Pradeep Rangdal

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Kasim Hanif

Posts: 11
Nickname: kasim
Registered: Apr, 2002

what is main difference between AWT and Swing Posted: Apr 22, 2002 6:44 PM
Reply to this message Reply
Advertisement
Hello

What is the most significant difference between AWT and Swing?

1)is it that swing is more efficient
2)that swing is platform independant
3)Swing classes start with J

a few students are disagreeing with each other as this question came up in a recent exam!


Jay Kandy

Posts: 77
Nickname: jay
Registered: Mar, 2002

Re: what is main difference between AWT and Swing Posted: Apr 23, 2002 4:55 PM
Reply to this message Reply
Heres Amy Fowler's wonderful article about this topic. http://java.sun.com/products/jfc/tsc/articles/mixing/

Pradeep Rangdal

Posts: 1
Nickname: pradeep
Registered: Apr, 2002

Re: what is main difference between AWT and Swing Posted: Apr 25, 2002 2:37 AM
Reply to this message Reply
Hi ,

The major difference between swing and awt components is
1. It implements MVC architecture and separates the model(data) from its view which is been controlled by a common logic controller.
2. Every component of swing is a container ( object -> components-> containers - > JComponents
3. Doesn?t depend/invoke on any underlying system resources hence platform independent.

Rest article suggested by jay kandy is self explanatory.

Pradeep R.

Flat View: This topic has 2 replies on 1 page
Topic: re: Graphics2D class cannot found in IE 5.0 Previous Topic   Next Topic Topic: cannot resolve symbol

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use