jschap12 - Chapter 12 Working with Java Applets and...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
Chapter 12: Working with Java Applets and Embedded Data JavaScript - Comprehensive
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Previewing the Guessing Game and Embedded Data Programs In this tutorial, you will create two projects: an HTML document containing a guessing game program that includes a Java applet and an HTML document containing embedded data To preview the guessing game program use the directions on pages 652 and 653 of the textbook
Background image of page 2
Tutorial12_RandomNumberGame.html in Internet Explorer
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Previewing the Guessing Game and Embedded Data Programs Continued You will open the HTML document that contains embedded data controlled by JavaScript To open the document, you will need to install RealPlayer on your system RealPlayer is a free program that executes multimedia, such as video and audio files To preview the HTML document containing embedded data controller by JavaScript, refer to the steps on pages 653 and 654 of the textbook
Background image of page 4
Tutorial12_RealPlayerPlug-in.html in Navigator
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Section A: A Java Tutorial
Background image of page 6
Objectives In this section, the students will learn: About applets and embedded data About Java classes and methods How to compile a Java program How to create an applet About Java variables and data types How to add an applet to an HTML document How to control Java applets with JavaScript
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Applets and Embedded Data Web pages can consist of more than just HTML tags, images, and JavaScript code; they can also include applets and embedded data, such as sound and video files An applet is a Java program that runs from within a Web page Embedded data refers to data from one type of application that is stored in another type of application
Background image of page 8
Introduction to Java JavaScript works within the confines of an HTML page You cannot incorporate Java code directly into an HTML document as you can JavaScript code You place Java applets on a Web page as encapsulated objects within a bounding box Encapsulation means that all code and required data are self-contained within the object itself A bounding box is the rectangular area on a Web page in which an applet executes
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Introduction to Java Object-oriented programming (OOP) refers to the creation of reusable software objects that can be easily incorporated into another program An object is programming code and data that can be treated as an individual unit or component Another aspect of Java that distinguishes it from JavaScript is that it is architecturally neutral , which means that it will run on any platform A platform is an operating system and its hardware type The Java Virtual Machine (Java VM) is the language interpreter for the Java programming language
Background image of page 10
There is a different Java VM for each platform supported by the Java programming language To perform the exercises in this section, you will need a copy of Sun Microsystem’s Java Development Kit The Java Development Kit, or JDK, is the original development environment for creating Java
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 06/13/2011 for the course MIS 241 taught by Professor Tse during the Spring '11 term at Moraine Valley Community College.

Page1 / 80

jschap12 - Chapter 12 Working with Java Applets and...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online