AWT & SWING

Ads
 

AWT & SWING

What is diffennce between AWT & SWING?
View Answers

October 30, 2010 at 1:02 PM

Hi friend,

These are basically the main differences between awt and swing.

1.swing components sits on the top of AWT components and do the wiork. 2.AWT components are called HeavyWeight component and Swings are called ligth weight component. 3.swings components are made in purely java and they are platform independent whereas AWT compoents are platform dependent. 4.we can have different look and feel in Swing whereas this feature is not supported in AWT. 4.Swing has many advanced features like JTabel,Jtabbed pane which is not available in awt.

The main difference between AWT and Swing components are the AWT components use native methods whereas Swing components use the methods that are writtern in Java.Hence AWT components are Heavy Weight components and Swing components are Light Weight components.

Thanks.

Ads









Related Tutorials/Questions & Answers:
java swing - Swing AWT
java swing  how to add image in JPanel in Swing?  Hi Friend, Try the following code: import java.awt.*; import java.awt.image....: http://www.roseindia.net/java/example/java/swing/ Thanks
Java - Swing AWT
Java  How can I interact with a hardware like scanner, barcode-reader or a digital camera through my created swing program
Advertisements
Java swing in NetBeans - Swing AWT
Java swing in NetBeans   thanks a lot sir for everything you answered for my last questions now sir i just have another 3 questions that is Q 1. i will specify a swing code for JTable using NETBEANS so would you tell me
problem in swing-awt
problem in swing-awt  I am doing project in core java and i am facing one problem. I have to add command prompt(terminal) to the fream at bottom but not getting the solution. So please help me. thanks and regards, Aakash
Image Manipulation in Swing AWT
Image Manipulation in Swing AWT  Sir, I'am new to Swing Programming. I have to create an application where an image is displayed on one Label. The same image has to be split in parts and stored in database pert wise. Later
swings - Swing AWT
swings  What is Java Swing Technologies?  Hi friend,import javax.swing.*;import java.awt.*;import javax.swing.JFrame;public class...://www.roseindia.net/java/example/java/swing
Toolbar: Change of action - Swing AWT
Toolbar: Change of action  How do you change the action of a button in the Jtoolbar using Swing .The button in the toolbar should act as links so that when that button is clicked the corresponding page should appear
JFrame components printing - Swing AWT
/example/java/swing/Print.shtml and downloaded the codes and compiled it got... Swing Components"); WindowShow.setNativeLookAndFeel(); Container content
JFrame components printing - Swing AWT
/example/java/swing/Print.shtml and downloaded the codes and compiled it got... Swing Components"); WindowShow.setNativeLookAndFeel(); Container content
awt
JDBC and AWT to display data  how to display data using JDBC in awt/applet
awt
JDBC in awt applet  how to display data using JDBC in awt/applet
awt
Java AWT Applet example  how to display data using JDBC in awt/applet
Reports in java - Swing AWT
java,eclipse - Swing AWT
Java swings - Swing AWT
awt
JDBC in awt  how to display data using JDBC in awt/applet
create, edit ,open simple documents using java - Swing AWT
want to use Java Swing or JSP? Do you want to create word document file
virtual on screen keyboar - Swing AWT
Java Swing
Java Swing       After learning AWT, lets now see what's Swing? Well, Swing is important to develop... table controls All AWT flexible components can be handled by the Java Swing
How to passed the ID's in MAP how to stored whaterver select the name that only ID should store in db using SWING/AWT?
How to passed the ID's in MAP how to stored whaterver select the name that only ID should store in db using SWING/AWT?  Hi, I am working on SWING/AWT application,I write select box programs in swings. my proble is what
JTable-Selecting a given cell - Swing AWT
SWING
SWING  A JAVA CODE OF MOVING TRAIN IN SWING
swing
swing  Write a java swing program to delete a selected record from a table
swing
swing  How to make swing component auto-resizable when JFrame resize
awt in java
awt in java  using awt in java gui programming how to false the maximization property of a frame
Java Swing
Java Swing       Swing... for weak and inflexible AWT controls for providing more sophisticated graphical user.... Swing also supports a pluggable look and feel. Classes representing components
Swing
Swing  Write a java swing program to search the details of the students. Searching is performed on studentā??s first name. The details of all those students having same name as in given in searching criterion will be displayed
Swing
Swing  Write a java swing program to search the details of the students. Searching is performed on studentā??s first name. The details of all those students having same name as in given in searching criterion will be displayed
awt jdbc
awt jdbc  programm in java to accept the details of doctor (dno,dname,salary)user & insert it into the database(use prerparedstatement class&awt
java program for Denial of Service (DoS) attacks detection - Swing AWT
how to backup and restore database using java - Swing AWT

Ads