0

What are the differences between both and which one should i consider for the different kinds of java-based apps?

4
Contributors
4
Replies
5
Views
8 Years
Discussion Span
Last Post by Ezzaral
0

awt is the oldest, which means swing is the ... ta-daa :) youngest, most up to date and in certain parts improved compared to awt.

off course, you'll still use a number of awt functionalities, but if you intend to make GUI's in Java, I'd suggest picking up on Swing.

0

Well some of the conditions which could influence you use whether AWT or Swing are:-

  1. Eye Candy, Swing really gives you a lot more features when it comes to Eye candy, you can change the look and feel, add icons to buttons etc, which AWT would never allow
  2. Second point is where do you expect your application to run ?, If you want it to run on just about any machine with any version of JRE (even 1.0 or 1.1) then you do not have a choice but need to go with AWT. (Since swing was added only in version 1.2)
  3. AWT would also be an option in situations where limited CPU power or memory is an important factor.
  4. But for day to day desktop applications I would any time prefer Swing over AWT
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.