• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which is faster? Swing or AWT?

 
Gurumurthy Ramamurthy
Ranch Hand
Posts: 273
  • Mark post as helpful
  • send pies
  • 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?
 
Sainath Veepuri
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!