For my class we are asked to create a holiday-themed applet. I am very far ahead in my knowledge of Java than the rest of the class because I have been working in it for a few months experimenting with AWT and a little Swing. As far as applets go, I have little experience rather than painting the page.
In class, I noticed that we set up the applet to draw in as follows:
import java.applet.Applet;
import java.awt.*;
public class ChristmasApplet extends Applet
{
public void paint(Graphics g){
}
}
Whereas the default for the applet is as follows:
import java.awt.*;
import javax.swing.*;
public class ChristmasApplet extends JApplet
{
public void paint(Graphics g){
}
}
So my question is, what is the difference between these two setups? What is each used for specifically and what can and can't I do with each one?