Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.awt or .swing?

Status
Not open for further replies.

Alira

Programmer
Mar 21, 2001
77
CA
Hi All!

I have this question...
I'm trying to make my first java applet for web and I'm sort of confused.
Which library to use? Or both of them?
I just want to make sure that this applet can be viewed..
What will be the expert advice?:)


Thanks:) Have a great day!:)
 
Swing is an extension of the awt package. Do not use both as not only will your code be inconsistent but there are interoperability issues. The java tutorial may expand a little on this but it definately states that you should use one and one only.

Personally I would use Swing. Swing components are more featured and developed over awt. You just need to compare Button with JButton (all swing components start with J....) or FileChooser with JFileChooser.
 
Swing wigets are light weight components. It is definitly the way to go. It is much faster (due to not thread safe and light weight).

Dix
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top