Difference: AWT, Swing

Questions by Beena   answers by Beena

Showing Answers 1 - 5 of 5 Answers

sarat

  • Sep 29th, 2005
 

hi,awt is weight component,swing is light component

  Was this answer useful?  Yes

kuriakose

  • Sep 30th, 2005
 

AWT is heavy weight component  and Swing is light weight component and it is platform indepenedent compared with AWT

  Was this answer useful?  Yes

Rajesh Sakhamuri

  • Nov 3rd, 2005
 

AWT is the AbstractWindowToolkit.AWT is the heavy weight component,why Because It hides the peers component to the user.in AWT  2 instances are created,it hides to user.where as swings are the light weight component.it wont create peers component. by Rajesh

  Was this answer useful?  Yes

Mithun

  • Feb 14th, 2006
 

1. AWT is written in platform specific code where as Swing componets are written entirely in java , thus its totally platform independent.

2.AWT components are heavy-weight components means these are known to the OS,but Swing is light-weight components which are not know to the OS.

3.Pixels of AWT components are opaque thus always rectangular, where Swing components are transparent thus shape could be round as well.

4.Swing components provide some extra features along with the features available in AWT,like user can create a command button having both icon and label.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions