AWT or Swing?

Reply

Join Date: Mar 2007
Posts: 1,429
Reputation: Nichito is an unknown quantity at this point 
Solved Threads: 30
Featured Poster
Nichito's Avatar
Nichito Nichito is offline Offline
Nearly a Posting Virtuoso

AWT or Swing?

 
0
  #1
Oct 28th, 2008
What are the differences between both and which one should i consider for the different kinds of java-based apps?
-->sometimes i wanna take my toaster in a bath<--
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: AWT or Swing?

 
0
  #2
Oct 28th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 1,175
Reputation: stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light stephen84s is a glorious beacon of light 
Solved Threads: 125
Featured Poster
stephen84s's Avatar
stephen84s stephen84s is offline Offline
Veteran Poster

Re: AWT or Swing?

 
0
  #3
Oct 28th, 2008
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
Last edited by stephen84s; Oct 28th, 2008 at 6:12 am.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."

"How to ask questions the smart way ?"
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 1,429
Reputation: Nichito is an unknown quantity at this point 
Solved Threads: 30
Featured Poster
Nichito's Avatar
Nichito Nichito is offline Offline
Nearly a Posting Virtuoso

Re: AWT or Swing?

 
0
  #4
Oct 29th, 2008
can Swing run on web applets though?
-->sometimes i wanna take my toaster in a bath<--
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,439
Reputation: Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of Ezzaral has much to be proud of 
Solved Threads: 510
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: AWT or Swing?

 
0
  #5
Oct 29th, 2008
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC