Ayuda con JavaHelp
Estoy intentando crear un JavaHelp.
El código es este:
private void ayuda()
{
// Find the HelpSet file and create the HelpSet object
String helpHS = "ayuda.hs";
ClassLoader cl = interfazAdministrador.class.getClassLoader();
try {
URL hsURL = HelpSet.findHelpSet(cl,helpHS);
HelpSet hs = new HelpSet(null, hsURL);
// Create a HelpBroker object:
HelpBroker hb = hs.createHelpBroker();
hb.enableHelpOnButton(acercaDe,"administrador", hs);
} catch (Exception ee) {
System.out.println( "HelpSet " + ee.getMessage());
return;
}
}
Estoy usando NetBeans 6.0, he incluido el .hs y el .jhm y el .xml con el toc dentro del proyecto, están además en el directorio del proyecto.
El error da al crear el helpBroker. No sé q pasa, llevo horas dándole vueltas y no sale ni xa alante ni xa atrás...
Por favor necesito ayuda... Muchas gracias!
El código es este:
private void ayuda()
{
// Find the HelpSet file and create the HelpSet object
String helpHS = "ayuda.hs";
ClassLoader cl = interfazAdministrador.class.getClassLoader();
try {
URL hsURL = HelpSet.findHelpSet(cl,helpHS);
HelpSet hs = new HelpSet(null, hsURL);
// Create a HelpBroker object:
HelpBroker hb = hs.createHelpBroker();
hb.enableHelpOnButton(acercaDe,"administrador", hs);
} catch (Exception ee) {
System.out.println( "HelpSet " + ee.getMessage());
return;
}
}
Estoy usando NetBeans 6.0, he incluido el .hs y el .jhm y el .xml con el toc dentro del proyecto, están además en el directorio del proyecto.
El error da al crear el helpBroker. No sé q pasa, llevo horas dándole vueltas y no sale ni xa alante ni xa atrás...
Por favor necesito ayuda... Muchas gracias!
