Skip to main content

Call JavaHelp

No replies
bash
Offline
Joined: 2005-07-06
Points: 0

Hello,

I just created my first help. I use Jbuilder.
I get error loading in one method and cannot
find file in a different method.

The hs files are there and the path is correct.
Any idea ?

code eample:
**************
// try to find the helpset and create a HelpBroker object
if (mainHelpBroker == null){
HelpSet mainHelpSet = null;
try {
URL hsURL = HelpSet.findHelpSet
(guiexamples.Frame1.class.getClassLoader(), mainHelpSetName);
if (hsURL == null)
System.out.println("HelpSet " + mainHelpSetName + " not
found.");
else
mainHelpSet = new HelpSet(null, hsURL);
} catch (HelpSetException ee) {
System.out.println("HelpSet " + mainHelpSetName + " could not be
opened.");
System.out.println(ee.getMessage());
}
if (mainHelpSet != null)
mainHelpBroker = mainHelpSet.createHelpBroker();
if (mainHelpBroker != null)
// CSH.DisplayHelpFromSource is a convenience class to display the
helpset
csh = new CSH.DisplayHelpFromSource(mainHelpBroker);
}
// listen to ActionEvents from the helpItem
if (csh != null)
jMenuHelp.addActionListener(csh);

}
***************

Thanks
bashiro