# Using the Merge Demo

This merge demo is included to demonstrate the merge capabilities as they exist in the JavaHelp system.

## How Merging Works

When HelpSets are merged, the TOC, index, and search database information of the constituent HelpSets are appended to each other to form a merged HelpSet. Constituent HelpSets can be dynamically removed from the merged HelpSet, even while the merged HelpSet is displayed.

It's important to understand that there is always a master HelpSet to which other HelpSets are appended. For the purposes of this demo, this HelpSet serves as the master HelpSet.

## The Demo Program

This demo allows you to add HelpSets to the merge list, display the resulting merged HelpSet, and remove constituent HelpSets from the merged HelpSet.

To run the merge demo:

1. Use the Add dialog box to construct a list of HelpSets in the Merged HelpSets panel that you wish to append to the Master HelpSet
2. In the list, select the Master HelpSet
3. Click the Display button to view the merged information.
4. To remove one of the constituent HelpSets (other than the Master HelpSet), select the HelpSet in the list and click the Remove button.

NOTES:

- You can view any of the HelpSets in the list individually by selecting them and clicking Display. To view merged HelpSets you must select the Master HelpSet only, then click Display. All the HelpSets in the list are appended to the Master HelpSet.
- Source to this demo can be found at:

      	demos\src\sunw\demo\merge\Merge.java