This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes Java in General and the fly likes swing and awt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "swing and awt" Watch "swing and awt" New topic

swing and awt

Smitha Prasad
Ranch Hand

Joined: Apr 02, 2002
Posts: 41
what is the difference between swing and awt?
Dirk Mohr

Joined: Sep 28, 2001
Posts: 12
The main difference between awt and swing is, that awt uses native methods of the OS to display GUI-components whereas swing draws most of the components by itself.
Regards, Dirk
Dirk Schreckmann

Joined: Dec 10, 2001
Posts: 7023
Brother Dirk has already explained a main difference between the two. Sun's Overview of the Swing API explains some more differences.
Good Luck.

[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Smitha Prasad
Ranch Hand

Joined: Apr 02, 2002
Posts: 41
hey dirk and dirk... thanks!
I agree. Here's the link:
subject: swing and awt
It's not a secret anymore!