aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes What is the difference between AWT and Swing? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "What is the difference between AWT and Swing? " Watch "What is the difference between AWT and Swing? " New topic
Author

What is the difference between AWT and Swing?

me sesil
Greenhorn

Joined: Dec 19, 2003
Posts: 18
hi
i want to know about the difference between awt and swing?please explain me briefly.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

They're both windowing toolkits. AWT is older, and the newer Swing is built on (parts of) the AWT.
Basically, the difference is this: when the AWT wants to draw a button, it asks the native windowing system to do it -- i.e., it creates a Windows button control, or a Motif button widget. This AWT applications look like the native platform. There is only a very small choice of components, however.
When Swing wants to make a button, it draws it using the methods of the Graphics2D class. Therefore, Swing buttons don't have to look like the native platform's buttons. There are a much wider range of Swing components than AWT components.


[Jess in Action][AskingGoodQuestions]
me sesil
Greenhorn

Joined: Dec 19, 2003
Posts: 18
Ernest Friedman-Hill thanks
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
Moving this to the Swing / JFC / AWT forum, where folks are most familiar with these topics...


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the difference between AWT and Swing?