Sun Java Solaris Communities My SDN Account Join SDN
 
Tutorials & Code Camps

Magercise 12 - Exploring an HTML Browser Bean

 
Training Index


[Help | API Docs | Short Course | Magercises]



There is no solution for this Magercise; simply use the skeleton-section archive to explore the HTML Browser Beans via the BeanBox.

Magercise 12 Prerequisites

Skeleton Code

Tasks

  1. The first step is to create a working directory somewhere on your filesystem, hereafter referred to as workingdir.

  2. Next, save the distribution file IceBrowser.zipI.05.zip within workingdir and unzip the distribution.

  3. Next, see index.html in Doc for directions on setting up a class-path for the JAR file.

  4. Next, explore and verify the Bean functionality using the BeanBox.

  5. Lastly, investigate the demo programs in the examples directory, which are also discussed in index.html.

Where help exists, the task numbers above are linked to the step-by-step help page.

Demonstration

After loading the JAR file for the browser Beans, icebrowserbean.jar, the Browser, Document, and ICEBrowser Beans should appear in the palette, from where they can be selected and instantiated on the worksheet. For example, instantiating the HTML Document Bean should produce the following in the worksheet:

The property sheet should appear as follows:

The HTML Document Bean is very general and is easily incorporated into other applications. The ICEBrowser Bean bundles document browsing with controls, plus it has a main() method allowing command-line invocation:

java ice.htmlbrowser.ICEBrowser \
  http://java.sun.com

The application window includes a panel for controls as well as a document window:

Short Course
About This Short Course

Copyright © 1998-1999 MageLang Institute. All Rights Reserved.