Sample Code Sample Code: Loading Help Files


bundle = ResourceManager.getLocalizedTextFile(
        "html/addUserHelp.html",
        toolClass);

where toolClass is a class object that has the same codebase as the HTML file to be loaded. It is typically -- but not always -- the class object of your main Tool instance (myTool.getClass()). For example, a project-wide common dialog, subclassed from JDialog, that exists in a library jar file could pass this.getClass().