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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.