Create an html host document that calls splash applet class

Assignment Help JAVA Programming
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.

Reference no: EM131937194

Questions Cloud

Write a java application to display name of store on screen : Write a Java application to display the name of the store on the screen. Use appropriate documentation lines. Compile the program and execute it.
What is the temperature : What is the temperature (in °C) of an 11.7 L sample of carbon monoxide, CO, at 747 torr if it occupies 12.6 L at 59.2°C and 747 torr?
Write the class header for my color applet : Write the class header for My Color Applet. Remember to extend the Applet class. Include an opening brace for the class.
Calculate the number of moles of nitrogen gas : Calculate the number of moles of nitrogen gas (N2) that are needed to inflate a 67-L driver-side air bag at standard temperature (0°C) and pressure
Create an html host document that calls splash applet class : 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.
Explain why le chatelier principle is equivalent : Explain why Le Chatelier's Principle is equivalent to saying that a system at chemical equilibrium will be stable against small fluctuations.
Control the ph of physiological fluids : A buffer, consisting of H2PO4^1- and HPO4^2-, helps control the pH of physiological fluids. Many carbonated soft drinks also use this buffer system.
Planning to transport oxygen : A company is planning to transport oxygen, chlorine, and phosphorous by train to another city.
Create a java application that displays your name : In order to practice writing, compiling, and running Java, you decide to create a Java application that displays your name and address on the screen.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Instantiate a circle by giving its radius and use

Write a class Circle.java from which we can instantiate a circle by giving its radius and use it as is shown in the following program. 1 import java.util.Scanner; 2 public class Circles {

  Write a program that ask the user to enter a usemame

Write a program usennuftevalidator.java that ask the user to enter a usemame and checks whether the usemame meets the following criteria

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Write a program that asks user how many students to process

Write a program that asks the user how many students to process (must be at least 1, but no more than 20) and then reads in the scores for three items, an exam average score (double number), lab average score (double number) and homework average s..

  Calculate and return the sum of the geometric series

calculate and return the sum of the geometric series

  Write a main method that reads in a single string

Write a main method that reads in a single string and calls trianglePrint with that string. Write a method that uses recursion to print an input string in the shape of a triangle

  Write a program that plays a word game with the user

Write a program that plays a word game with the user. The program should ask the user to enter the following.

  Displays the stored array values on the screen

Displays the stored array values on the screen using WriteInt - Prompts the user for integer input a dozen times

  Different techniques for identifying candidate solutions

Discuss a real-world example of how polymorphism might be used in a system you are familiar with - different techniques for identifying candidate solutions

  Write a class to create a card

One default that sets a card to 13 of Spades (which is equivliant to Ace of Spades espically when they need to print the card) and One that accepts two parameters - one int for rank of the card and one string for the suit of Card.

  Create dict letter frequencies that reads the file

createDictLetterFrequencies that reads the file and also takes a parameter n. This method should return a dictionary of dictionaries. The outer dictionary associates the previous n letters of a word with an inner dictionary, which indicates the frequ..

  Write portions of java class that models a very simple clock

You will be writing portions of a Java class that models a very simple clock. You will also be provided with two different "front ends" that use this same class as a plug-in - a simple program that loops through the time for a full hour of time.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd