3. Adding a word count tool
Prev | Chapter 2. Tutorial | Next

## 3. Adding a word count tool

tutorial/tutorial3.xxe_gui:

      <tool name="countWordsTool">
        <class>CountWordsTool</class>
      </tool>

      <statusBar name="statusBar">
        <tool name="countWordsTool" />
        <insert />
      </statusBar>

The custom tool implemented by Java™ class `CountWordsTool` (code contained in ``XXE_install_dir`/doc/gui/tutorial/custom_parts.jar`) is declared using a tool element.

Then this tool is inserted in the standard status bar (statusBar element called "`statusBar`" found in Professional.xxe_gui), before all the other components of this status bar, by the means of the `<insert/>` facility.

Prev | Up | Next
2. Changing the About dialog box | Home | 4. Adding a preferences sheet for the word count tool