This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes why we use swing to create GUI application instead of AWT? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "why we use swing to create GUI application instead of AWT?" Watch "why we use swing to create GUI application instead of AWT?" New topic
Author

why we use swing to create GUI application instead of AWT?

Jagruti Mandir
Greenhorn

Joined: Sep 05, 2012
Posts: 3
we can also use AWT(Absract Window Toolkit).but when it is used to create component, it's called its native method. native method is written in C language.
but C is platfom depended language. so, look and feel of the component is different for different platform(operating system). so, devloper can't make sure about appearence of his GUI. so,it's better to use swing rather than AWT.

AWT component is heavyweighted means use more system resources(memory,processor time).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: why we use swing to create GUI application instead of AWT?
 
Similar Threads
what is peer ?
Difficulty in Java 1.5
Awt VS Swing
A Java Newbie
what is the meaning of Heavy weighted component and light weighted component.