Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Programming Language Expert

For this project, you need to design and create the HTML document (also referred to as a “Web page”), in which certain basic HTML elements are incorporated. Your HTML document should also link to several Java applets, some of which you would compile yourself from the code provided, and some you would get from online sources and simply link to in your HTML document.

Additionally you would input, compile, and test a simple Java application. Unlike Java Applets, that are linked and run from within HTML files, Java applications run freestanding, and could be run from DOS Command Line.

This project is designed to familiarize you with the Java tools and processes, including editing, compiling, and viewing applets and applications, also with the methods for using Java Applets in Web documents.

There are two related learning objectives involved:

1. Creating HTML documents.

2. Using Java Development Kit tools (primarily the compiler and appletviewer) to edit, compile, and test Java Applets (which will then be run from your HTML pages) and

Applications (that could be run from Command Prompt).
Your Web page design must use the effective background image or pattern, and various colours, text sizes, and images to create a visually effective design. The Web page must also include your name, course name and number, an email link to you, and links to the required Java Applets and navigation links to facilitate easy movement within pages.

The project has two parts:

• Part 1—Applets you would create from code provided.

• Part 2—A sample downloadable Applet, that you would get from the online source. These usually include ready-to-run Class files, as well as the HTML code which launches them.

The recommended procedure for completing this project is as follows:

1. Review all the project instructions and study the JAVA PROJECT DEMO.

2. Build HTML pages (without the Java Applet links for now), and test them for navigation and other basic functionality.

3. Download and install the present active version of Java Development Kit from http://java.com/en/ and set your classpath as per the detailed instructions provided.

4. If essential , work through DOS tutorial (DOS Primer) to familiarize yourself with basic command line functions, including:

• opening and using an MS-DOS window

• changing directories

• running programs from the command line

• viewing file lists (directory command) in DOS

• editing batch files to set path commands

6. Input, compile, and test the Part 1 Applets, and link them to your HTML pages.

7. Download and test the Part 2 sample Applet of your choice, then add the HTML code to your Project pages.

There are extensive links for tutorials, software tools, and other useful resources at the Virtual Helpdesk. Check both the Course Tools and the Java Help sections. Links to other required and useful resources can be found below.

ACQUIRING THE TOOLS AND SAMPLE FILES

1. Download and install the Java Development Kit (version 1.4.2 or higher) by following the instructions on the Virtual Helpdesk Page—Getting Started Java (JDK).
The downloaded file is the Java 2 SDK installer, and is named j2sdk-1_4_2_x-windows-i586.exe (assuming a Windows download). After running the installer file (by double clicking on it), you can view the installed components in the folder c:\j2sdk1.4.2_ on your hard disk. To recover disk space, you can delete the installer file after you have completed the installation. Note, version number or x pertains to the latest version number available from Sun Microsystems, and therefore it may vary. 

2. Set your path to the JDK using the instructions from the Virtual Helpdesk Java Help files.

3. Download and install the Programmer’s File Editor (NOTE: This is optional. Java code and HTML may also be input and edited using Notepad.)
Functioning Java Class Files for PART 2 may be obtained online from Sun Microsystems’ Applets page.

PART 1—SAMPLE APPLETS TO BE INPUT AND COMPILED

You are given with Java code for two Java applets below. In each case, the text must be typed into either WordPad or a Programmer’s File Editor, then saved as named, compiled using javac compiler included in your JDK, and tested using appletviewer. At last, the working applets must be linked to Part 1 of your HTML document.

Triangle.java

import java.awt.*;
import java.applet.Applet;
public class Triangle extends Applet {
public void paint (Graphics g){
int bottomX=80;
int bottomY=200;
1int base=100;
int height=100;
g.drawLine(bottomX,bottomY,bottomX+base,bottomY);
g.drawLine(bottomX+base,bottomY,bottomX+base/2,bottomY-height);
g.drawLine(bottomX+base/2,bottomY-height, bottomX,bottomY);
}
}

Oval.java

import java.awt.*;
import java.applet.*;
public class Oval extends Applet {
public void paint (Graphics g) {
Color c=new Color(20,120,160);
g.setColor(c);
g.fillOval(20,20,60,30);
}
}

PART 2—USING AN EXISTING APPLET

Obtain ONE of the sample applets from Sun Microsystems’ Applets page, or any other source for free Java applets you may wish to use. Test the applet, and link it to Part 2 of your HTML page(s).

Functioning Java Class Files for PART 2 may be obtained online from Sun Microsystems’ Applets page.

Programming Language, Programming

  • Category:- Programming Language
  • Reference No.:- M91915

Have any Question? 


Related Questions in Programming Language

Assignmenta student had to make a decision on how to be

Assignment A student had to make a decision on how to be paid. The student could accept a straight $10/hour or take 10 cents for the first hour, but have the hourly wage double each hour. That is, the student would make ...

1 show how to transform a three-address code sequence into

1. Show how to transform a three-address code sequence into one in which each defined variable gets a unique variable name. 2. Determine the types and relative addresses for the identifiers in the following sequence of d ...

Write a program that creates a picture of a mountain

Write a program that creates a picture of a mountain panorama from a height profile entered by the user. The following screenshot shows what the output could look like: The picture shall consist of 5 text lines of length ...

Assignment on stackswrite a program that evaluates

Assignment on Stacks Write a program that evaluates arithmetic expressions in infix notation that are not necessarily fully parenthesized. An arithmetic operation +, -, * or / has its usual precedence and associativity. ...

1 solve a simple payroll calculation find amount of pay

1. Solve a simple payroll calculation. Find amount of pay given hours worked and hourly rate. (pay = hourly rate * hours worked.) Run this values (hours = 30 and rate = 8.52) and with (hours = 53 and rate = 11.54). Show ...

Programming project sorting to find anagramssee project 4

Programming Project Sorting to find anagrams See Project 4 on pg. 869 for the basic ideas of this project. We will find the longest anagrams in the words.txt provided in the Chapter 13 files on the author's website. 1. F ...

Assignmentafter informing the user what the program does

Assignment After informing the user what the program does, prompt the user for the number of darts to throw. Also, prompt for a number of simulations (why not have the program simulate this dart throwing more than once). ...

James wants to buy a motorcycleinstructions the following

James wants to buy a motorcycle Instructions: The following programming problem can be solved by a program that performs three basic tasks-Input Data, Process Data, and Output Results. Use RAPTOR to design a suitable pro ...

Write a program that will help an elementary school student

Write a program that will help an elementary school student learn multiplication. Use rand to produce two positive one-digit integers. It should then type a question such as: How much is 6 times 7? The student then types ...

Programming logic and design questions1 given the

Programming Logic and Design Questions 1 given the following pseudocode module header: module calculate something (real x,real y, real z,) when the following call executes: call calculate something (21.6, 43.1, 15.2) sho ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro