Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between AWT & Swing?

Answer Posted / java learner

Main differences:
1. Awt components are heavy weight whereas swing components are light weight, heavy weight are those which are os dependent.

2. A swing has extra components like table,tree,optionalpanel with the class named JTree,JTable,JOptionalPane etc.


3. Swing components support MVC (model,view,control architecture) whereas awt components support Delegate Event Model.

4. Swing components provide dynamic look and feel whereas awt components provide static look and feel.



the awt is the base, its components are heavy weight as they are operating system dependent.To solve this problem we introduce swing
the swing self built components which are not inherited from awt are light weight .Still a major problem with swing
is that the components it inherited from awt are atill heavy this problem is solved by hidden container ContentPane which u can get by method getContentPane()

Is This Answer Correct ?    66 Yes 23 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of internal frame in swing?

1065


What is container in java swing?

1045


What are the different types of layout managers used in swing?

970


Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.

2194


What is the function of abstractaction class?

1067


What is actionlistener in java swing?

1040


What are swings awt?

935


What is Java Swing?

1076


What is the design pattern that java uses for all swing components ?

934


What is import javax swing jframe?

1016


What is the difference between swing and awt?

974


Which containers use a border Layout as their default layout in swing?

1043


What do you mean by java swing?

975


What is jfc? What are the features of jfc?

1034


What is java swing application?

1009