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

Info icon This 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
Image of page 1

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

View Full Document Right 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
Image of page 2
Tutorial12_RandomNumberGame.html in Internet Explorer
Image of page 3

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

View Full Document Right 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
Image of page 4
Tutorial12_RealPlayerPlug-in.html in Navigator
Image of page 5

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

View Full Document Right Arrow Icon
Section A: A Java Tutorial
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
Image of page 7

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

View Full Document Right 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
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
Image of page 9

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

View Full Document Right 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
Image of page 10
Introduction to Java 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
Image of page 11

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

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

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern