sono riuscito a scaricare i file jh*.rar da mettere nell'applicazione....ho creato manualmente il file JHELPSET.HS, JHELPMAP.JHM, JHELPIDX.XML e ho preso un mio esempio INDEX.HTML.
Tutti quest'ultimi copiati a manina nel workspace del mio progetto per un test.
Poi son partito da questo source di esempio ma mi da un excpetion.
codice:
import javax.help.*;
import java.net.URL;
import javax.swing.*;
public class JavaHelp {
public static void main(String args[]) {
JHelp helpViewer = null;
try {
ClassLoader cl = JavaHelp.class.getClassLoader();
URL url = HelpSet.findHelpSet(cl, "jhelpset.hs");
helpViewer = new JHelp(new HelpSet(cl, url));
helpViewer.setCurrentID("Simple.Introduction");
} catch (Exception e) {
System.err.println("API Help Set not found");
}
JFrame frame = new JFrame();
frame.setSize(500,500);
frame.getContentPane().add(helpViewer);
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.setVisible(true);
}
}
Error:
API Help Set not found