1. Describe the simplest format of an HTML applet tag. Give an example.
— below is the HTML code:
2. How is an application converted to an applet?
— Two steps:
a. Replace the name JFrame with the name JApplet at the beginning of the class definition(extends JApplet).
b. Replace the class’s constructor by the method init:
public void init(){
statement
}
3. What can an application do that an applet cannot do ?
— Applets can’t access files on the user machine. More secure.
APPlets and the HTML documents that use them should be placed in the same directory.
4. Describe the steps required to load an image into an applet.
–a. Locate this applet’s web server and load the image.
b. Convert to an image icon for further processing.