Hi All,
I am just trying to find out how to use JAVA Help and have come across a
problem at the first step.
I've the line below which I thought should find the help set file. For
some reason it always returns null.
ClassLoader cl = getClass().getClassLoader();
hsURL=HelpSet.findHelpSet(cl, "Help/JAVAhelpexample.hs");
The Help folder is in my application directory so it should be able to
find the file fine I thought.
P.S. cl isn't null.
Any suggestions?
I the JAVAHelp User's Guide quite helpful when I was getting started with
JAVAHelp; you can
download it at:
http://JAVA.sun.com/products/JAVAhelp/download_binary.html#userguide. That
page also contains instructions for
subscribing to the JAVAHelp mailing
list, which is supported by one of the
developer s of the JAVAHelp software.
wrote in
message the product; you
can not ask for much better than that.
There is also a JAVAHelp
forum at
http://forums.JAVA.net/jive/category.jspa?categoryID=53. You may have to
sign up for JAVA Developer Connection before you can post to it; I can not
remember for sure. But I think you can look at the
current posts without
signing up. A search of that forum may get you the answer to your question.
For what it's worth, here is a
method that I use to set up help in one of my
programs; I _think_ it worked the last time I ran the program:
private void setupHelp() {
String METHOD_NAME = "setupHelp()";
/* Find the HelpSet file and create the HelpSet object. */
ClassLoader classLoader = this.getClass().getClassLoader();
HelpSet helpSet = null;
try {
URL helpSetUrl = HelpSet.findHelpSet(classLoader, SDAC_HELPSET_NAME);
helpSet = new HelpSet(null, helpSetUrl);
}
catch (HelpSetException hs_excp) {
Object[] msgArgs = {"\n", SDAC_HELPSET_NAME, moreInLog};
String msg = utilities.logMessage(Level.SEVERE, CLASS_NAME, METHOD_NAME,
"msg009",
msgArgs, hs_excp);
JOptionPane.showMessageDialog(this, msg, CLASS_NAME,
JOptionPane.ERROR_MESSAGE);
return;
}
/* Create a HelpBroker object: */
helpBroker = helpSet.createHelpBroker();
/* Connect the Documentation item to the help broker. */
documentation Item.addActionListener(new
CSH.DisplayHelpFromSource(helpBroker));
/* Enable window-level help on RootPane. */
JRootPane rootpane = this.getRootPane();
helpBroker.enableHelpKey(rootpane, "events.editor", null);
/* Activate context-sensitive help
button on toolbar. */
fieldHelpButton.addActionListener(new
CSH.DisplayHelpAfterTracking(helpBroker));
/* Set up field-level help for individual components. */
CSH.setHelpIDString(tableView, "eventeditor.table");
CSH.setHelpIDString(htmlSource, "eventeditor.htmlSource");
CSH.setHelpIDString(formattedHtml, "eventeditor.formattedHtml");
CSH.setHelpIDString(reformatButton, "eventeditor.reformatButton");
CSH.setHelpIDString(updateButton, "eventeditor.updateButton");
CSH.setHelpIDString(exitButton, "eventeditor.exitButton");
}
--
Rhino
Blogs related to JAVA HelpSet
HelpSetMaker 1.1.1 (Default branch)
... tailored to the needs of the JavaHelp online help system for
Java programs.
... Index creation works again as spurious XML statements are removed from
HelpSet HTML.
... The "titletag" attribute can be added to
HelpSet output now.
...
Help Set Proxy connection timeout
Hi, I'm currently using: mysock.connect(sockaddr, 2000); to set socket connection timeout. Everything works fine until i set a.
Java man pages
So I had a little play today with creating a Javahelp
helpset out of the html manpages. This worked reasonably well, up to a point. It was pretty easy to knock up the
helpset file, and the map, TOC, and index files, and to create a
...
Re: [JAVAHELP] Displaying the Index tab by default when invoking ...
I am working with my Help developer; we have a
Java application that uses > JavaHelp. For this
Java application, the developer has programmed the Help >
... chance you made a name change to the Index View in the
HelpSet file?
...
Re: Displaying the Index tab by default when invoking JavaHelp ...
problem, specifically, to investigate the
helpset ... Index menu item now hangs the
Java application.
... "SIGNOFF JAVAHELP-INTEREST" in the body to LISTSERV@
JAVA.SUN.COM.
... Submit bug reports at http://
java.sun.com/cgi-bin/bugreport.cgi.
Send a Word to the Browser
... in
Java source files, send the word under the cursur to The
Java ... I have selected the new menu item "Search Word in
Java Alamanac Examplets":
... the built-in
helpset pops up with a text explaining the word under the cursor.
...