Latest Tutorials| Questions and Answers|Ask Questions?|Site Map




Have Programming Question? Ask it here!
 
 
 


samar
AWT & SWING
1 Answer(s)      3 years and 10 months ago
Posted in : Java Interview Questions


What is diffennce between AWT & SWING?

Advertisement
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.



Related Tutorials/Questions & Answers:
AWT & SWING
AWT & SWING  What is diffennce between AWT & SWING
swing-awt - Swing AWT
swing-awt  Hi, Thanks for replying to my question...I'm getting some confusion to add action events in my application(Rich Text Editor).How to add action events? Thank U
Advertisements
swing/awt - Swing AWT
swing/awt  How to create richtexteditor using swings...?I'm very much new to swings....It's urgent.....Thank u...   hello read this book you get idea; JFC Swing Tutorial, The: A Guide to Constructing GUIs, Second
java - Swing AWT
What is Java Swing AWT  What is Java Swing AWT
Basic Diffence between Swing-AWT - Swing AWT
Basic Diffence between Swing-AWT  What is Basic Diffence between Swing-AWT
AWT programmes - Swing AWT
AWT programmes  I need few programs for menus in AWT. how to open a filed dialog window, and how to save a image in the save window when we press... has all AWT programms which must open,save and make changes to a particular
Swing and AWT Problem - Swing AWT
Swing and AWT Problem  hi sir i have a problem i know from one Jframe we can send values to another Jframe. so in my project i have one fame containing three textfields CODE: String a=TNa.getText().toString(); String b
query - Swing AWT
java swing awt thread query  Hi, I am just looking for a simple example of Java Swing
awt - Swing AWT
awt  dear sir my proble is , i have applet code which is stock market chart this code made using "AWT" . in this chart one textbox when user.../java/awt/ Thanks
awt swings - Swing AWT
awt swings  hello sir, My requirement is to insert captured image from cam onto a frame and from that place i hve to save it in the database(MySql).its urgent sir.it is a part of my project..if code is available
java swing - Swing AWT
java swing  how i can insert multiple cive me exampleolumn and row in one JList in swing?plz g  Hi Friend, Please clarify your question. Thanks
Swing paint - Swing AWT
Swing paint  hi, i want to print something on window using swing applet.. m doing dis.. protected void paintComponent(Graphics g... the Swing Applet, use html file with the following code: Java Applet Demo
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 - Swing AWT
java swing   how i can insert in JFrame in swing?  Hi Friend, Try the following code: import java.awt.*; import javax.swing.*; import java.awt.event.*; class FormDemo extends JFrame { JButton ADD; JPanel
java swing - Swing AWT
java swing   Iam developing a java web browser.Actually my code works fine ie. i can load a web page without proxy.But in my place i have only proxy servers through which i should visit any web site.So, i want my browser also
SWING - Swing AWT
SWING  how can i insert image in Jpanel by extending class with JFrame in swing?  Hi Friend, Try the following code: import java.awt.*; import java.awt.image.*; import java.io.*; import javax.imageio.*; import
Swing question - Swing AWT
Swing question  I want to move a string in JFrame similarily as done by marquee tag in HTML.The string should move from right to left. How can I do this?  Hi Friend, Try the following code: import java.awt.
SWING - Swing AWT
SWING  how to insert image and components such as JLabel,JButton,JTextfield in JFrame in swing?  Hi Friend, Try the following code: import java.io.*; import java.awt.*; import javax.swing.*; import
swing - Swing AWT
swing   how to create JTabbedPane.when i choose one jtabbedpane it will appear JTextField,resultMessages.pls give me any examples  Hi Friend, Try the following code: import javax.swing.*; import java.awt.
swing with jdbc - Swing AWT
swing with jdbc  Hi, i m developing the desktop application using swing.i want to use table structure for that.also its DB specific application. i have some problems with swing using jdbc. 1. the values entered in table
Swing - Swing AWT
/java/swing/get_jtextfield_value_from_anothe.shtml Thanks
AWT-swings tutorial - Swing AWT
AWT-swings tutorial  hello sir, i am learnings swings and applets.. i want some tutorials and some examples related to swings.. thank you sir...://www.roseindia.net/java/example/java/swing/ http://www.roseindia.net/java/example/java
SWINGS - Swing AWT
more information,Examples and Tutorials on Swing,AWT visit to : http://www.roseindia.net/java/example/java/awt/ http://www.roseindia.net/java/example/java/swing/ Thanks
awt list item* - Swing AWT
awt list item*  how do i make an item inside my listitem not visible  Hi friend, import java.awt.*; import java.awt.event.... information. http://www.roseindia.net/java/example/java/awt/ Thanks
AWT code for popUpmenu - Swing AWT
AWT code for popUpmenu  Respected Sir/Madam, I am writing a program in JAVA/AWT.My requirement is, a Form consists of a "TextBox" and a "Button... for more information. http://www.roseindia.net/java/example/java/awt/pop
Java Dialogs - Swing AWT
visit the following links: http://www.roseindia.net/java/example/java/swing/GrideComponents.shtml http://www.roseindia.net/tutorial/java/swing/springlayout.html http://www.roseindia.net/java/example/java/awt/borderlayout-example
tooltip problem - Swing AWT
tooltip problem  Hi All, I am using SWT_AWT bridge in my code to embed swing components into SWT Composite. I am using a Swing JButton in SWT Composite. My problem is that I am unable to see the tooltip for this button even
Use of Hyperlink in Swing - Swing AWT
Use of Hyperlink in Swing  Hi, We are developing the UI using the Java Swing and I have to create Hyperlink in the JTable cell so that if the user... is: Is it possible to use Hypelink in java Swing. Please Help. Regards
Java - Swing AWT
Java  write a swing program to display the contents of a database in a JTable
provide code - Swing AWT
provide code  Dear frnds please provide code for two player CHESS GAME.....using swings,awt concepts   Hi friend, import java.awt..../java/swing/ Thanks
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
tree - Swing AWT
visit the following code: http://www.roseindia.net/java/example/java/swing/TreeComponent.shtml http://www.roseindia.net/java/example/java/swing/AddNodes.shtml http://www.roseindia.net/java/example/java/swing/RemoveNodes.shtml Thanks
Java - Swing AWT
Java    Hi friend,read for more information,http://www.roseindia.net/java/example/java/swing
Java - Swing AWT
Java  program to read,add,update,delete the database using swing and servlet
code - Swing AWT
code  i want example problem for menubar in swings  Hi Friend, Please visit the following links: http://www.roseindia.net/java/example/java/swing/SwingMenu.shtml http://www.roseindia.net/java/example/java/swing
swings - Swing AWT
swings  how to develope desktop applications using swing  Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/ Here you will get lot of swing applications
Java - Swing AWT
Java  How can I interact with a hardware like scanner, barcode-reader or a digital camera through my created swing program
java - Swing AWT
java  i need to set the popup calender button in table column&also set the date in the same table column using core java-swing
java - Swing AWT
Java Implementing Swing with Servlet  How can i implement the swing... Swing with Servlet Example and source Code Servlet SwingToServlet... { JFrame frame = new JFrame("Frame in Java Swing"); frame.setSize(400, 400
Look and Feel - Swing AWT
Look and Feel  i m using netbeans for creating a swing GUI...: http://www.roseindia.net/java/example/java/swing/GettingAndSettingLAF.shtml http://www.roseindia.net/java/example/java/swing/DefaultLookAndFeel.shtml Hope
Window State - Swing AWT
Window State  Thanks for you reply. I have already tried the setSize() method of AWT Window and also with JFrame. But I want to Maximize the Window when it is opened by the user and instead of the Maximize
use of plugins - Swing AWT
use of plugins  hi dear i m making a project on java swing .i needed a plugins for search buttons........  https://swingexplorer.dev.java.net/tips.html Thanks
Program for Calculator - Swing AWT
Program for Calculator  write a program for calculator?  Hi Friend, Please visit the following link: http://www.roseindia.net/java/example/java/swing/calculator-in-swing.shtml Hope that it will be helpful
Java Program - Swing AWT
Java Program  A program to create a simple game using swings.  Hi Friend, Please visit the following link: http://www.roseindia.net/tutorial/java/swing/guessNumber.html Thanks
java - Swing AWT
java  i want a program that accepts string from user in textfield1 and prints same string in textfield2 in awt   hi, import java.awt.... information, http://www.roseindia.net/java/example/java/awt/ Thanks
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
Tetris Color - Swing AWT
Tetris Color  I have created Tetris game in Swing but I want to delete row when 6 blocks of same colors so how can i retrieve color from different classes an t how to check condition
Java - Swing AWT
Java  program to read,add,update,delete the database using swing and servlet  Hello Just Refer Don't Copy the content of this URL http://java2s.com/ Thanks Rajanikant  Hi friend, To solve
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
java swings - Swing AWT
. http://www.roseindia.net/java/example/java/swing/draw-simple-bar
Advertisements
 

 

 

DMCA.com