Reference no: EM131937194
Problem
Converting an Application to an Applet After completing the splash screen in Programming Assignment, you decide to convert the application into an applet. Perform the following steps.
1. Change the file and class name to Splash Applet every time it displays in the code.
2. Add the words, extends Applet, to the class header.
3. Change the main() method header to a paint() method header.
4. Change each println() method to a draw String() method. Remember to reference the Graphics object (g) as you did on pages 96 and 97.
5. Save the program with the new file name, Splash Applet.
6. Compile the program. If there are errors, fix them in the Splash Applet coding window and then compile again.
7. Create an HTML host document that calls the Splash Applet class. Set the attributes of the applet to have a width of 400 and a height of 300 when it displays in the Applet Viewer window.
8. Run the program.
9. Print a copy of the applet interface by using the Applet menu in the Applet Viewer window. Using Text Pad, print a copy of the source code for the Java applet and the HTML code for the host document.
10. Edit the program to include a system date.
Text Book: Java Programming: Comprehensive Concepts and Techniques By Gary B. Shelly, Thomas J. Cashman, Joy L. Starks, Michael Mick.