Java Technology Home Page
A-Z Index

Java Developer Connection(SM)
Online Training

Downloads, APIs, Documentation
Java Developer Connection
Tutorials, Tech Articles, Training
Online Support
Community Discussion
News & Events from Everywhere
Products from Everywhere
How Java Technology is Used Worldwide
 
Training Index

Introduction to the JavaBeans API, Magercise 12
Exploring an HTML Browser Bean

by John Zukowski, MageLang Institute

[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.


[ This page was updated: 27-Oct-99 ]

Products & APIs | Developer Connection | Docs & Training | Online Support
Community Discussion | Industry News | Solutions Marketplace | Case Studies
Glossary - Applets - Tutorial - Employment - Business & Licensing - Java Store - Java in the Real World
FAQ | Feedback | Map | A-Z Index
For more information on Java technology
and other software from Sun Microsystems, call:
(800) 786-7638
Outside the U.S. and Canada, dial your country's AT&T Direct Access Number first.
Sun Microsystems, Inc.
Copyright © 1995-99 Sun Microsystems, Inc.
All Rights Reserved. Legal Terms. Privacy Policy.