Ask Question, Ask an Expert


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 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.


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.


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.

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+base/2,bottomY-height, bottomX,bottomY);

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


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

Purposethe purpose of this assignment is to practice using

Purpose: The purpose of this assignment is to practice using loops, selections, and other basic features of Java in order to solve a real-world problem. Program Description: The Jeddah Broker Company is one of the compan ...

Write a program to test for the case of a math equation

Write a program to test for the case of a math equation entered via the keyboard using the SWITCH-CASE operator. Types of equations to test for: x + y  x / y   x * y and x - y. The program is to ask for the following: 1. ...

Csis program homeworkwrite a program where the user will

CSIS program homework Write a program where the user will enter a number between 1 and 50 representing a state. The program should display the full name of that state. Assume the states are in alphabetical order, that is ...

Object oriented system analysis and design1non-functional

Object Oriented System Analysis and Design 1. Non-Functional Requirements a) Analysis of NFRs Analyse the Case Study documents and determine the non-functional requirements (NFRs) or system quality attributes necessary t ...

Programming assignment- implement a udp client and udp

PROGRAMMING ASSIGNMENT- Implement a UDP client and UDP server that support simple timeout-based retransmission with AIMD congestion control: -The client should send as many packets as are in its CURWIN (current window) a ...

You must do this assignment correctly as described

You must do this assignment correctly as described below.  If you do not follow the directions or break the rules you will receive a 0 score. Simulation of checking tic-tac-toe board for wins by counting X and O in rows, ...

Electrical engineering computer methods assignmentq1 write

Electrical Engineering Computer Methods Assignment Q1. Write a program that given the following array, reverses all array elements and then prints them. int x[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}; Q2. Write a program to d ...

Integrative programmingassignment- managing a user account

Integrative Programming Assignment- Managing a User Account List Objective: To manage a user list that can be modified and saved to a text file. Inputs: • Input text file consisting of pairs of usernames and passwords, s ...

Consider the following three programswhere i k l are low

Consider the following three programs: where i, k, l are low variables and a, b, c, d, h, n are high variables. Assume db is a database with two columns (shown as array, where the index represents the row), lookup and is ...

Shell programmingyou have created the directory structure

Shell Programming You have created the directory structure and some base files to be used by the Web server and Web site. For the Web site to be created in a production environment, you need to package your commands in a ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate