Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Summary OBJECT-ORIENTED PROGRAMMING

Rating
-
Sold
-
Pages
51
Uploaded on
19-08-2021
Written in
2017/2018

Applet Program that runs in appletviewer (test utility for applets) Web browser (IE, Communicator) Executes when HTML (Hypertext Markup Language) document containing applet is opened and downloaded Applications run in command windows

Show more Read less
Institution
Course

Content preview

1
Chapter 3 - Introduction to Java
Applets
Outline
3.1 Introduction
3.2 Sample Applets from the Java 2 Software
Development Kit
3.2.1 The TicTacToe Applet
3.2.2 The DrawTest Applet
3.2.3 The Java2D Applet
3.3 A Simple Java Applet: Drawing a String
3.3.1 Compiling and Executing WelcomeApplet
3.4 Two More Simple Applets: Drawing Strings and
Lines
3.5 Another Java Applet: Adding Floating-Point
Numbers
3.6 Viewing Applets in a Web Browser
3.6.1 Viewing Applets in Netscape Navigator 6
3.6.2 Viewing Applets in Other Browsers Using
the Java Plug-In
3.7 Java Applet Internet and World Wide Web
Resources
3.8
 2002 (Optional
Prentice Hall. All rights reserved.Case Study) Thinking About Objects:
Identifying the Classes in a Problem Statement

, 2

3.1 Introduction

• Applet
– Program that runs in
• appletviewer (test utility for applets)
• Web browser (IE, Communicator)
– Executes when HTML (Hypertext Markup Language)
document containing applet is opened and downloaded
– Applications run in command windows
• Notes
– Mimic several features of Chapter 2 to reinforce them
– Focus on fundamental programming concepts first
• Explanations will come later



 2002 Prentice Hall. All rights reserved.

, 3
3.2 Sample Applets from the Java
Software Development Kit
• Sample Applets
– Provided in Java 2 Software Development Kit (J2SDK)
– Source code included (.java files)
• Study and mimic source code to learn new features
• All programmers begin by mimicking existing programs
– Located in demo directory of J2SDK install
– Can download demos and J2SDK from
java.sun.com/products/jdk




 2002 Prentice Hall. All rights reserved.

, 4

3.2.1 The TicTacToe Applet

• Running applets
– In command prompt, change to demo subdirectory of applet
cd c:\jdk1.3\demo\applets
cd appletDirectoryName
– There will be an HTML file used to execute applet
– Type appletviewer example1.html
• appletviewer loads the html file specified as its
command-line argument
• From the HTML file, determines which applet to load (more
section 3.3)
– Applet will run, Reload and Quit commands under
Applet menu


 2002 Prentice Hall. All rights reserved.

Connected book

Written for

Institution
Course

Document information

Summarized whole book?
Yes
Uploaded on
August 19, 2021
Number of pages
51
Written in
2017/2018
Type
SUMMARY

Subjects

$28.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
MaorineKipsomet

Get to know the seller

Seller avatar
MaorineKipsomet
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
4 year
Number of followers
0
Documents
3
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions