Spring 1998 Schedule

Enhancing Web Pages with Java Applets for Non-Programmers

Even with colorful text and images, most Web pages are static. Java applets help you create animated and interactive Web pages without tedious programming.

While Java programming can be learned by C and C++ programmers, most Web designers don't program. This class provides hand-on experience for non-programmers to use Java applets as building blocks to create more effective Web sites. You explore Java applets step-by-step and learn how to embed them into your Web pages. At the end of the class, you will have learned how to find the applets you need and use them for effective site design.

This course provides hands-on instruction in the UC Berkeley Extension Computer Training Facilities in San Francisco.

Prerequisite: Familiarity with HTML and Web page design or completion of Enhancing Web Pages with HTML.

Course information: (510) 643-6904

MICHAEL WOLFE, M.S., is Vice President of Engineering at Kana Communications, a startup software company focusing on enterprise email support solutions. He has been teaching computer science and developing real-world systems for 10 years at Stanford University, Goldman Sachs, and Wells Fargo. His prior position was as a Director of Engineering of Internet Profiles Corp.

June 20, 8:30 am-5:30 pm UC Extension Downtown, 150 Fourth St. (Near Moscone Center at Howard)

Class Outline

  • Assorted Applets
  • Graphing Applets
  • Additional topics/wrap-up
  • Class notes

    Introduction

    Where are we?

    Who are you?

    Who am I?

    What are we going to do?

    How will the class work?

    How the lab works.

    Java Fundamentals

    Java is a language, platform, and religion

    Java is a language

    Java is an API

    Java as universal executable content language - analogous to HTML

    What is an applet?

    What is a Java application?

    What do applets look like?

    Where to find applets

    Adding a Java Applet to HTML

    Example, from ESPN:

    < APPLET CODEBASE="http://scores-espn.sportszone.com/java" 
    CODE="starwave.sportszone.scorepost.ScorePost.class" vspace="1" 
    WIDTH="128" 
    HEIGHT="182" 
    ARCHIVE="ScorePost.zip">
    < PARAM NAME="cabbase" VALUE="ScorePost.cab">
    < PARAM NAME="bgcolor" VALUE="#638494">
    < PARAM NAME="text" VALUE="#FFFFFF">
    < PARAM NAME="data" VALUE="/cgi/scoretracker/databuffer.dll?/scoretracker/scorepost/data/all.dat">
    < PARAM NAME="ad data" VALUE="/ad/scorepost/all.txt">
    < PARAM NAME="target" VALUE="_top">
    < PARAM NAME="delay" VALUE="3500">
    < PARAM NAME="data time" VALUE="30000">
    < PARAM NAME="inactive data time" VALUE="300000">
    </APPLET>
    
    Applet syntax.

    The <APPLET> tag

    The CODE setting

    The CODEBASE setting

    The HEIGHT and WIDTH settings

    The ARCHIVE setting

    The <PARAM> tag

    Customizing Applets Settings

    The Ticker applet

    http://www.vivids.com/ij2/assorted/Ticker.html

    To get set up:

    1. Create a working folder for this class
    2. Click download to get the .zip file
    3. Put it into your working folder
    4. Unzip it
    5. Click on Ticker.html
    6. It should work the same way it does on the http://www.vivids.com site
    7. You can now edit Ticker.html to get going

    Things to try:

    1. Change the HEIGHT setting
    2. Change the WIDTH tag
    3. Change the "text1" param
    4. Add a "text3" param
    5. Try different fonts: TimesRoman, Helvetica, Courier, Dialog, DialogInput, ZapfDingbats
    6. Try different styles: Plain, Bold, Italic, BoldItalic
    7. Play with the delays to see what happens
    8. Find a new background out on the net somewhere, load it, and change it
    9. Put two banners on one page
    10. Change CODEBASE to point to where this applet resides on www.vivids.com/ij2. Hint: you need to look at the page source for the ticker example on the site and try to figure out where the .class file is.

    Text Applets

    WaveText

    http://www.vivids.com/ij2/text/WaveText.html

    Things to try:

    1. Change Text
    2. Change TxPointSize
    3. Change WaveLength
    4. Change Amplitude

    Stencil

    http://www.vivids.com/ij2/text/Stencil.html

    Things to try:

    1. Same as above (Text, TxPointSize, etc.)
    2. New image
    3. Set the TxUrl PARAM

    Stealing an applet

    Assorted Applets

    Coalesce

    http://www.vivids.com/ij2/assorted/Coalesce.html

    Things to try:

    1. Change the string
    2. Change Steps
    3. Change DelayBetweenChars
    4. Change text size and style

    Audio

    http://www.vivids.com/ij2/fund/Audio.html

    Image Applets

    WaveImage

    http://www.vivids.com/ij2/image/WaveImage.html

    Things to try:

    1. Amplitude
    2. WaveLength
    3. BeginRange, EndRange
    4. New graphic

    Other lecture topics

    Pros and cons of Java applets

    Alternatives to Java

    Future of Java

    A clock applet

    A menu applet

    A tree-view applet

    A billboard applet

    Charting applets

    http://www.netcharts.com

    Steps:

    1. Find a demo applet
    2. "View Source"
    3. Save the HTML to a local file
    4. Change CODEBASE to point to http://www.netcharts.com/netfactory/classes
    5. Play with the parameters to make your own charts

    Other applets

    1. Sun applets.
    2. A Calendar applet.
    3. A clock.
    4. Java boutique.
    5. Java Applet Reviews at JARS

    Individual Project

    Create your own WWW page from scratch

    It should contain several applets, both from our book and from the WWW

    Spend about 45 minutes on it

    What to do next