Ask Question, Ask an Expert

+61-413 786 465

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

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Assignment - haskell program for regular expression

Assignment - Haskell Program for Regular Expression Matching Your assignment is to modify the slowgrep.hs Haskell program presented in class and the online notes, according to the instructions below. You may carry out th ...

Question 1 what is hadoop explaining hadoop 2 what is

Question: 1. What is Hadoop (Explaining Hadoop) ? 2. What is HDFS? 3. What is YARN (Yet Another Resource Negotiator)? The response must be typed, single spaced, must be in times new roman font (size 12) and must follow t ...

Extend the adworks applicationi add dialogs to allow the

Extend the AdWorks application I. Add Dialogs to allow the user to Add, Edit, Read and Delete a Customer and refresh the view accordingly. 1. The user should be able to select a specific customer from the DataGrid and cl ...

Task arrays and structsoverviewin this task you will

Task: Arrays and Structs Overview In this task you will continue to work on the knight database to help Camelot keep track of all of their knights. We can now add a kingdom struct to help work with and manage all of the ...

Task - hand execution of arraysoverviewin this task you

Task - Hand Execution of Arrays Overview In this task you will demonstrate how arrays work by hand executing a number of small code snippets. Instructions Watch the Hand Execution with Arrays video, this shows how to ste ...

Assignment - horse race meetingthe assignment will assess

Assignment - Horse Race Meeting The Assignment will assess competencies for ICTPRG524 Develop high level object-oriented class specifications. Summary The assignment is to design the classes that are necessary for the ad ...

Background informationthis assignment tests your

Background Information This assignment tests your understanding of and ability to apply the programming concepts we have covered throughout the unit. The concepts covered in the second half of the unit build upon the fun ...

Assignment - proposal literature review research method1

Assignment - Proposal, Literature Review, Research Method 1. Abstract - Summary of the knowledge gap: problems of the existing research - Aim of the research, summary of what this project is to achieve - Summary of the a ...

Php amp session managment assignment -this assignment looks

PHP & SESSION MANAGMENT ASSIGNMENT - This assignment looks at using PHP for creating cookies and session management. Class Exercise - Web Project: Member Registration/Login This exercise will cover adding data connectivi ...

  • 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

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As