• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Which is faster? Swing or AWT?

 
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

I have some idea on both of them.

1. Swing:
a. Does not depend on native os for drawing.
b. Takes care of its drawing apart from the top-level container
c. Consumes more memory
d. faster

2. AWT:
a. Depends on native os for every component
b. it is slower
c. Does not consme more memory

Any INPUTS?
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Gurumurty,

Originally posted by Gurumurthy Ramamurthy:


1. Swing:
d. faster

2. AWT:
b. it is slower

Any INPUTS?



=============
I doubt if this point is right?
Performance wise Swing components should be slower when compared to AWT as they do not depend on the native code.
An addition would be ..
Swings are the JavaFoundationClasses where as AWT are not.

-- SAi
 
reply
    Bookmark Topic Watch Topic
  • New Topic