JavaScripts/Java
Programming
|
|
Course Length:
(5 days or 35 hours)
|
| This
course is divided into two parts. In the first part, the students
learn about the features, capabilities of JavaScript and how to include
the JavaScript into a Web Page. In the second part, the students learn
how to create Java Applets and applications using Sun Microsystems Java
programming language.
|
|
Course
Topics:
|
|
Day
1: JavaScript Fundamentals
|
|
Part I: Lecture and Demonstration by the instructor on JavaScript
Fundamentals
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- What
JavaScript is? What JavaScript can do?
- The
Difference between JavaScript and Java
- Handling
Events, Values and variables
- Assignments
and comparisons
- What
tools to use? Where to put your scripts?
- Hiding
scripts from old browsers, Putting comments in scripts
- Alerting
the user,
- Redirecting
the user
- Browser
detection and conditionals,
- Plug-in
detection
- Around
and around with loops,
- Functions
- Scrolling
status bars, Status bar messages
Students
do Hands-on lab and exercises on creating simple JavaScript code
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
|
|
Part
II: Lecture and Demonstration by the instructor on Working with Images
and Frames
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- Creating
rollovers
- Creating
more effective rollovers
- Triggering
rollovers from a link
- Creating
cycling
- Making
the banner cycling wait for the user
- Building
slide shows
- Displaying
a random image
- Combining
a rollover with an image map
- Automatically
changing background colors
- Frames,
Frames, and More Frames
- Keeping
a page out of a frame
- Forcing
a page into a frame
- Loading
a frame
- Creating
and loading a dynamic frame
- Sharing
functions between frames
- Storing
information in frames
Students
do Hands-on lab and exercises on creating rollovers, slide shows and
images
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
|
|
Day
2:
Working with Forms and Windows
|
|
Part
III: Lecture and Demonstration by the instructor on Working with Forms
and Windows
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- Verifying
Forms
- Validating
Email address
- Selecting
menu items
- Working
with radio buttons
- Setting
one field with another
- Validating
Zip codes
- Verifying
passwords
- Working
with Browser Windows
- Opening
a new window
- Scrolling
a window
- Bringing
windows to the front
- Updating
one window from another
- Creating
new pages with JavaScript
- Closing
a window
- Creating
a control panel
- Displaying
alerts when a window is loaded
Students
do Hands-on lab and exercises on Working with Forms and Windows
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples and projects
from their books.
|
|
Part
IV: Lecture and Demonstration by the instructor on Dynamically Updated
Pages
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- Putting
the current date into a web page
- Working
with days
- Customizing
your message for the time of day
- Converting
military time to AM/PM
- Creating
a countdown
- Working
with referrer pages
- JavaScript
and Cookies
Students
do Hands-on lab and exercises on Dynamically Updated Pages
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples and projects
from their books.
|
|
Day
3: Fundamentals of Java
|
|
Part
V:
Lecture
and Demonstration by the instructor on The
Java Phenomenon
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- What
Is Java?
- The
Java Programming Language
- The
Java Platform
- What
Can Java Do?
- How
Will Java Change My Life?
- Create
a Java Source File, Compile the Source File
- Run
the Application
- The
Anatomy of a Java Application
- Comments
in Java Code
- Defining
a Class, The main Method
- Using
Classes and Objects
|
|
Part
VI:
Lecture and Demonstration by the instructor on The
"Hello World" Applet
|
The instructor will
explain the concepts and using the instructor's computer will
demonstrate the following features for the students:
- Create
a Java Source File
- Compile
the Source File
- Create
an HTML File That Includes the Applet
- Running
the Applet
- The
Anatomy of a Java Applet
- Importing
Classes and Packages
- Defining
an Applet Subclass
- Implementing
Applet Methods
- Running
an Applet
- Common
Problems (and Their Solutions)
- Compiler
Problems
- Can't
Run the Compiler
- Can't
Find the File
- Changes
Didn't Take Effect
- Syntax
Errors
- Semantic
Errors
- Interpreter
Problems
- Can't
Find Class
- The
main Method Is Not Defined 31
- Applet
Problems
Students
do Hands-on lab and exercises on Creating Applets
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
|
|
Part
VII: Lecture
and Demonstration by the instructor on Object-Oriented
Programming Concepts
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- What
Is an Object?
- The
Benefits of Objects
- What
Is a Message?
- The
Benefits of Messages
- What
Is a Class?
- Objects
versus Classes
- The
Benefit of Classes,
- What
Is Inheritance?
- The
Benefits of Inheritance
- Where
Can I Get More Information?
Students
do Hands-on lab and exercises on Creating Applets
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
|
|
Part
VIII:
Lecture
and Demonstration by the instructor on The
Nuts and Bolts of the Java Language
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- Running
the count Chars, Variables and Data Types
- Data
Types, Variable Names, Scope, Variable Initialization
- Final
Variables, Operators, Arithmetic Operators
- Relational
and Conditional Operators, Bitwise and Logical Operators
- Assignment
Operators, Expressions
- Control
Flow Statements, The if-else Statement
- The
switch Statement, Loop Statements
- Exception-Handling
Statements, Branching Statements
- Arrays
and
Strings, Arrays, Strings, String Concatenation
|
|
Day
4: Objects
and Classes in Java
|
|
Students
do Hands-on lab and exercises on The
Nuts and Bolts of the Java Language
The
students will use their assigned workstations to practice the following
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
- Running
the count Chars, Variables and Data Types
- Data
Types, Variable Names, Scope, Variable Initialization
- Final
Variables, Operators, Arithmetic Operators
- Relational
and Conditional Operators, Bitwise and Logical Operators
- Assignment
Operators, Expressions
- Control
Flow Statements, The if-else Statement
- The
switch Statement, Loop Statements
- Exception-Handling
Statements, Branching Statements
|
|
Part
IX:
Lecture and
Demonstration by the instructor on Objects and Classes in Java
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- A
Brief
Introduction to Classes, The
Life Cycle of an Object
- Creating
Objects, Using Objects
- Cleaning
Up Unused Objects, Creating Classes
- Providing
Constructors for Your Classes
- Declaring
Member Variables, Implementing Methods
- Controlling
Access to Members of a Class
- Understanding
Instance and Class Members
- Writing
a finalize Method, Reality Break! The Spot Applet
- Extending
a Class, Implementing an Interface
- Using
an Inner Class to Implement an Adapter
- Hands-on
lab
Students
do Hands-on lab and exercises on Objects
and Classes in Java
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
|
|
Day
5: More
Features of the Java Language
|
|
Part
X:
Lecture and Demonstration by the instructor on
More Features of the Java Language
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- Managing
Inheritance, Understanding Inheritance
- Being
a Descendent of Object
- Writing
Final Classes and Methods
- Writing
Abstract Classes and Methods
- Creating
Interfaces, What Is an Interface?
- Defining
an Interface
- Implementing
the Sleeper Interface
- Using
an Interface as a Type
- Warning!
Interfaces CannotGrow
- Implementing
Nested Classes
- Inner
Classes, Other Facts about Nested Classes
- Creating
and Using Packages
- Creating
a Package, Using Package Members
- Managing
Source and Class Files
- Setting
the Class Path
Students
do Hands-on lab and exercises on inheritance, final classes, abstracts
and packages
in Java (
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
|
|
Part
XI: Lecture and Demonstration
by the instructor on Overview of Applets
|
|
The
instructor will explain the concepts and using the instructor's computer
will demonstrate the following features for the students:
- A
Simple Applet
- The
Life Cycle of an Applet
- Loading
the Applet
- Leaving
and Returning to the Applet's Page
- Reloading
the Applet
- Quitting
the Browser
- Summary
- Methods
for Milestones
- Methods
for Drawing and Event Handling
- Methods
for Adding Ul Components
- Methods
for Using Ul Components in Applets
- Adding
an Uneditable Text Field to the Simple Applet
- What
Applets Can and Cannot Do
- Test
Driving an Applet
Students
do Hands-on lab and exercises on creating applets
The
students will use their assigned workstations to practice the above
features. The instructor will monitor their performance and assists the
students to do their projects. Students will use examples from their
books.
|
|
Part
XII:
Lecture
and Demonstration by the instructor on
Taking
Advantage of the Applet API
|
- Finding
and Loading Data Files
- Displaying
Short Status Strings
- Displaying
Documents in the Browser
- Sending
Messages to Other Applets
- Finding
an Applet by Name: the get Applet Method
- Finding
All of the Applets on a Page: the getApplets Method
- Playing
Sounds
- Sound-Related
Methods
- An
Example: Sound Example
- Defining
and Using Applet Parameters
- Deciding
Which Parameters to Support
- Writing
the Code to Support Parameters
- Giving
Information about Parameters
- Using
the <APPLET> Tag
- Specifying
Parameters
- Specifying
Alternate HTML Code and Text
- Specifying
the Applet Directory
- Combining
An Applet's Files into a Single File
- Other<APPLET>Tag
Attributes
- Hands-on
lab
|