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 and SWING what is the
advantage of using swing?

Answer Posted / modi[achir communication]

Difference between AWT and SWING:

Swing provides a richer set of components than AWT. They are
100% Java-based. There are a few other
advantages to Swing over AWT:
• Swing provides both additional components like JTable,
JTree etc and added functionality to AWT-replacement
components.
• Swing components can change their appearance based on the
current “look and feel” library that’s being used.
• Swing components follow the Model-View-Controller (MVC)
paradigm, and thus can provide a much more
flexible UI.
• Swing provides “extras” for components, such as: icons on
many components, decorative borders for
components, tool tips for components etc.
• Swing components are lightweight (less resource intensive
than AWT).
Java
45
• Swing provides built-in double buffering (which means an
off-screen buffer [image] is used during drawing
and then the resulting bits are copied onto the screen. The
resulting image is smoother, less flicker and quicker
than drawing directly on the screen).
• Swing provides paint debugging support for when you build
your own component i.e.-slow motion rendering.

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In how many ways we can do exception handling in java?

949


What is the difference between a scrollbar and a scrollpane?

1009


How do you initialize an arraylist in java?

994


Define max and min heap, also the search time of heap.

992


What are the library functions in java?

1001


What is a subsequence of a string?

1017


What are the major advantages of internal iteration over external iteration?

998


Write a java program to count the number of words present in a string?

949


What is a lightweight component?

986


What is hashmap in java?

1028


Can we have return statement in finally clause? What will happen?

926


Does .length start 0 java?

974


How many ways can we create the string object?

975


Why do we use return statement?

985


What is the difference between heap and stack memory?

1159