Running the Demo Application

This document describes the DemoApp application that demonstrates some of the capabilities of standard jHelp components.

The Help Menu

In the MenuBar across the top of the application's main frame, select the "Help" menu.

demoapp2.gif (2378 bytes)

The Help menu lets you select typical help items. These items will, of course, depend upon your application. You need not follow this example exactly when you add jHelp to your programs.

Index

The Index menu item will present a compiled jHelp index frame. The index frame contains three panels that display the documentation index, a global word list, and a global word/phrase search panel. The index and word list are compiled using jHelp's index builder, and provided along with the documentation files.

Table of Contents

Table of Contents simply calls jHelp to display an HTML document that contains a list of primary help documents.

Dynamic HTML

The Dynamic HTML item will display jHelp using an HTML string that is created programmatically. A dynamic HTML element is not read from a static document file. jHelp's demo app initiallizes a sample HTML string for initial display, but you can use the demo's editor (described below) to modify the string and display it "on the fly."

About jHelp

This selection simply presents jHelp's display frame, used as an about box.

The Edit Menu

The "Edit" menu consists of a single item, "Change HTML..."

Change HTML...

demoapp3.gif (1432 bytes)

Selecting this item will bring up an editor frame in which you can modify the HTML text that the demo will display when you click on the "Dynamic HTML" item in the "Help" menu.

The editor features a help button, and also a KeyListener that will display help if the F1 key is pressed while it is visible.

The File Menu

The "File" menu contains a single item, "Quit"

Quit

demoapp4.gif (1210 bytes)

Selecting the "Quit" item closes the demo application.


Contents