What is the difference between java.applet.* and java.applet.Applet ?
When you import java.applet.*, it means you are importing all the classes available in the java.applet package. When you import java.applet.Applet, it means you are importing the single class. It is better to import the classes that you need instead of importing all the classes in the package.