Javahelp from fx

I have Javahelp running on my Java program but cannot see how to access the help from a button on the rewritten JavaFX version.
Can anyone provide an example of the setup and access code
The new FX program is much easier to use and to write

The following code compiles but gives a runtime error on the HelpSet line. It doesn't like the null which appears to ask to system to find the default classloader.
public class myHelp {
static public HelpBroker startJavaHelp()
HelpBroker hb = null ;
     URL url = null;
try
     {   url = new URL("file://help/help.hs");
HelpSet hs = new HelpSet(null,url);
hb = hs.createHelpBroker();
System.out.println("created help broker");
     catch(Exception e)
     {   e.printStackTrace();
System.out.println("Url error here " + url);
     return hb ;
I can use ClassLoader instead but cannot determine what to load.
static public HelpBroker startJavaHelp()
HelpBroker hb = null ;
     URL url = null;
String helpHS = "help/help.hs";
ClassLoader cl = ecowand.Main.class.getClassLoader();
try
     {   url = HelpSet.findHelpSet(cl, helpHS);
HelpSet hs = new HelpSet(null,url);
hb = hs.createHelpBroker();
     catch(Exception e)
     {   e.printStackTrace();
System.out.println("Url error here " + url);
     return hb;
The line
ClassLoader cl = ecowand.Main.class.getClassLoader();
flags an error in netbeans. It appears to only want .java file here, not .fx
In my fx program, I call startJavaHelp() on startup, the idea being that this would give me the required HelpBroker that I could use, somehow, in the action when the Help button is pressed.

Similar Messages

  • Calling javahelp from javafx

    I have JavaHelp accessed from a Java application. I am moving the application to JavaFX. I have tried rewriting the code I have but cannot make it work.
    Does anyone have a working example?

    The following code compiles but gives a runtime error on the HelpSet line. It doesn't like the null which appears to ask to system to find the default classloader.
    public class myHelp {
    static public HelpBroker startJavaHelp()
    HelpBroker hb = null ;
         URL url = null;
    try
         {   url = new URL("file://help/help.hs");
    HelpSet hs = new HelpSet(null,url);
    hb = hs.createHelpBroker();
    System.out.println("created help broker");
         catch(Exception e)
         {   e.printStackTrace();
    System.out.println("Url error here " + url);
         return hb ;
    I can use ClassLoader instead but cannot determine what to load.
    static public HelpBroker startJavaHelp()
    HelpBroker hb = null ;
         URL url = null;
    String helpHS = "help/help.hs";
    ClassLoader cl = ecowand.Main.class.getClassLoader();
    try
         {   url = HelpSet.findHelpSet(cl, helpHS);
    HelpSet hs = new HelpSet(null,url);
    hb = hs.createHelpBroker();
         catch(Exception e)
         {   e.printStackTrace();
    System.out.println("Url error here " + url);
         return hb;
    The line
    ClassLoader cl = ecowand.Main.class.getClassLoader();
    flags an error in netbeans. It appears to only want .java file here, not .fx
    In my fx program, I call startJavaHelp() on startup, the idea being that this would give me the required HelpBroker that I could use, somehow, in the action when the Help button is pressed.
    bye

  • Targeting a help page within JavaHelp from the app?

    I'm considering implementing JavaHelp in my app.
    My big question...I want to provide various points in the application that jump straight to the relevant parts in the help.
    Does JavaHelp support that?
    For instance, on a given dialog, I'm going to have a little HELP icon in the upper right. When someone clicks on that, I want to jump straight to the help page regarding that dialog, rather than bringing up help and requiring the user to navigate to it.

    And the answer is "absolutely"!

  • Opening secondary window from javahelp window activated from modal dialog

    hello,
    has anyone had this problem before? I open javahelp from a dialog with setActivationWindow(modalDlg), but then, opening secondary windows from that javahelp appear hidden, unreachable because of the modal windows (the dialog and the help window). is there a solution for this?

    Christian,
    This problem is occuring on 2 machines which has Java 1.5. But rest of the machines which has 1.5,1.6,1.4 are supporting modal windows. So not really sure whether its a browser issue or JRE issue or it is how the modal windows behave in an inconsistent way. Really need a solution for this problem as early as problem.
    Regards,
    Rajesh.

  • JavaHelp and OracleHelp don't appear in SSL folder

    Hi,
    I presume that along with the other output files such as HTML
    Help, WebHelp, etc. JavaHelp and OracleHelp should also appear in
    the SSL folder of the Project pane. But these two deliverables
    don't appear in my version of RH. I use RH X5.0.2.
    Is this something related to buyer-specific need. Suppose we
    would have asked for RH without JavaHelp and OracleHelp. I am not
    sure. I asked the guys out here but even they are not sure.
    Pls suggest...

    Two things I can suggest if you're building JavaHelp,
    specifically JavaHelp 2.0:
    1. Make sure you have a JRE installed on your hard drive
    (we're using 1.4.2_04) Since you've already installed RH, you
    unfortunately need to reinstall it, then point it to the right
    folder.
    2. I strongly recommend suggesting to your development team
    that they NOT use the JEditor Pane method of calling JavaHelp from
    the Java application. Our development team is current using this
    older (buggy) method and because of it, some of the limitations in
    JH that Sun apparently fixed (such as not being able to link to an
    external URL or email) are still present.
    Let me know if you need any help with the JavaHelp stuff. I
    created a whole procedure on setting it up correctly so that our
    support staff can get it right every time they install RoboHelp for
    us.
    Jim

  • JavaHelp, Frames and Modal Dialogs...recommendations

    Seen a few posts on this, but no answers.
    I've got help buttons scattered throughout my application for users to get context sensitive help.
    Here's the behavior I'm seeing:
    Scenario 1:
    - Initiate JavaHelp from a Frame
    - Bring up a modal dialog
    - JavaHelp is blocked
    - Click on a help button in my dialog
    - A new JavaHelp window appears
    - Close the dialog
    - The new JavaHelp window disappears
    - The original JavaHelp window is now blank
    - When I try to destroy the original JavaHelp window, a NullPointerException is thrown from the windowClosing method
    Scenario 2:
    - Initiate JavaHelp from a modal dialog
    - Close the dialog
    - JavaHelp disappears
    I really want JavaHelp to work like help in other applications:
    - I want one window to come up and work regardless of dialogs opening and closing
    - I want the user to use the JavaHelp while performing a task
    Is there a solution to this?

    Is SE 6 the only solution?
    Anyone know what the version of Java currently shipping with Mac OS X will support?

  • JavaHelp authoring

    What tools do people generally use to author help for JavaHelp?
    Is there a reasonable workflow using OpenOffice plus some other tool or process?
    Ideally I would like to be able to create PDF, web help and JavaHelp from the same source.
    (I know this has been asked before, but the answer probably changes over time. If it has been asked recently I apologise, I scanned back a few pages and didn't see anything).

    Hi.
    And you may try JHelpDev from http://www.mk-home.de . It's totally free with sourcecode.
    But its TOC and Index editor is very simple, you need to spend much more time to setup your Help System
    I didnot recommend Hellon from Software 7 GmbH. It's expensive.
    I recommend JavaHelpAuthor from http://www.pivotonic.com .
    It's a good WYSWYG editor for helpset file and provide a powerful and utilitarian table of content and index editor.
    You may use it to finish your work in its expired times.
    good luck.

  • I18n for Server-Based JavaHelp Helpsets?

    Hi Folk,
    Can anyone tell me how can we implement internationalization for Server-Based JavaHelp Helpsets?
    As an example, I have below code snippet for Index.jsp and I am invoking JavaHelp from this page.
    <jsp:useBean id="helpBroker" class="ServletHelpBroker" scope="session" />
    and
    <jh:validate helpBroker="<%= helpBroker %>" helpSetName="MyJavaHelp/alarms/Alarms.hs/>
    As per my understanding,
    In case, I have to support more than one language, then I must have so many .hs files for each lang. But the above( <jh:validate > ) tag accepts only fully qualified url.
    Please let me know how to solve this else if you have any alternative.
    Thanks in advance.
    Pachu

    We have sucessfully used javahelp with a custom network protocol handler
    to fetch the documentation from specific "packages" in the classpath.
    The same technique could be used with a database.
    Drop me a line if you're interested in more detail.
    Gordan Vosicki

  • Security Exception with JavaHelp and Webstart

    I have seen several posts on here concerning JavaHelp with Webstart, but no one seems to be getting the same error that I have. Everything works fine if I run the application and launch help outside of Webstart.
    When I download the app using webstart, my helpset seems to get loaded properly, but I get the following error when trying to launch JavaHelp from within the application:
    Parsing failed for null
    Exception caught while parsing nulljava.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
    java.lang.NullPointerException
    I'm not quite sure why it's trying to access the property user.home, but it doesn't seem that others that have post get this error.
    Does anyone have any suggestions?
    Thanks.

    Ok... this appears to be an issue with the new JavaHelp 2.0 because it works perfectly fine in version 1.3
    It appears that version 2.0 has a "favorites" section that, I'm guessing here, stores the users favorites locally. That would be why the user.home property gets accessed and the security policy is violated with Webstart.
    I can't say that this is a bug... maybe I can disable the "favorites" feature... either that or I need to stick with JavaHelp 1.3
    Thanks.

  • JavaHelp UI help

    Hi,
    I have noticed that when I run JavaHelp with hsviewer the window that comes up has a menu bar with the "File" and "Options" menu. However, when I launch JavaHelp from my own application that menubar does not show up. Can anyone please tell me why this is?
    Also, does anyone know how to modify the UI of JavaHelp? (as in, if I wanted to add another menu to the viewer, or add a new button, etc.). Any help in this matter would be greatly appreciated. Thanks.
    Farzana

    Hi Farzana,
    Can you show me how to launch JavaHelp from an application?
    My application has a help menu, with a "Context Help" menu item.
    When the user clicks on the menu item, I want to launch JavaHelp, and display the topic related to the screen that they are on.
    Each screen has a unique name (String) which I can get when the user clicks on the help menu.
    Do you have any code I could use?
    Regards,
    Enrico
    [email protected]

  • Launching JavaHelp with a modal dialog

    Hi,
    I am trying to launch JavaHelp from a modal dialog, which consists of a JTabbedPane with 2 tabs. My code right now checks to see which index is selected, then sets the help ID accordingly. However, when I run my application, JavaHelp simply does not launch. How do I work around the problem with the modal dialog...the code for checking the index is correct, because it works in another part of the application, only that window is not modal.

    hi there
    you can try with       helpButton = new JButton("Help");
          CSH.setHelpIDString(helpButton, helpTopicId);
          if(myHelpBroker != null) {
            helpButton.addActionListener(
                new CSH.DisplayHelpFromSource(myHelpBroker);
          } supposed you initialize myHelpBroker with something meaningful (a valid help broker pointing to the help set in question) and helpTopicId with the id of the topic to be displayed
    HTH
    Ulrich

  • Winhelp support in a Java program

    Hello,
    Of the several products we develop, one, a Java program, uses
    the Java Help help system (logically). The others use a standard
    Winhelp help system (developed in Robohelp). Our current workflow
    for developing a help system for the Java program is to batch
    convert the Winhelp RTF files into HTML files. The problem is, most
    of our Winhelp formatting is either dropped or incorrectly
    represented in the Java help file. Also, I prefer the look and feel
    of a Winhelp system over Java.
    Is it possible for a Java program to be modified so that it
    supports a Winhelp help system and not a Java Help system? If so,
    how is this done, and where can one find information on the
    process?
    If not, what options do we have to "pretty up" the Java
    output from the conversion?
    Thanks!
    Todd

    Surely the whole point of javahelp is that it is cross
    platform? Winhelp is for Windows only so I cannot see how it would
    be possible unless someone has produced some sort of converter. I
    am not aware of one but perhaps Google can help.
    Why can't you just generate javahelp from your project? That
    should keep the formatting. There's a topic on my site about
    javahelp but it is aimed at RH HTML users. Nonetheless there may be
    something in that is of help.
    I assume you are aware that winhelp will be more problematic
    under Vista? Your users will be able to download a viewer but you
    will not be allowed to distribute it.

  • Javax.help.HelpSetException: Could not parse

    Hi,
    I am working on JavaHelp2.0. I want to run my JavaHelp Application using the IntelliJ Idea. I created the sample files for the Application and included the javaHelp jars into the classpath. I am not getting any kind of compile time errors.
    But, when I was trying to run my javaHelp application, i am getting the following error log:
    javax.help.HelpSetException: Could not parse
    Got an IOException (null)
    Parsing failed for null
         at javax.help.HelpSet.<init>(HelpSet.java:146)
         at com.tradecapture.experiments.javahelp.FTPApp.createHelp(FTPApp.java:53)
         at com.tradecapture.experiments.javahelp.FTPApp.<init>(FTPApp.java:24)
         at com.tradecapture.experiments.javahelp.FTPApp.main(FTPApp.java:60)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    java.lang.NullPointerException
         at com.tradecapture.experiments.javahelp.FTPApp.<init>(FTPApp.java:40)
         at com.tradecapture.experiments.javahelp.FTPApp.main(FTPApp.java:60)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:78)
    Exception in thread "main"
    Process finished with exit code 1
    I appreciate, if anyone could provide me comments on how to overcome this kind of runtime error.
    Thanks & Regards,
    Sunil.

    Hello,
    I understood the problem. The problem is bcoz the findHelpSet() method is returning a null value. This is bcoz it is not able to find the
    HelpSet file.
    Now, i would like to reframe my problem.
    Why is the findHelpSet() method returning null value even when the
    directory which contains the file has been added to the CLASSPATH?
    Here is my code to invoke the JavaHelp from the application:
    ClassLoader cl = MDIApplication.class.getClassLoader();
    javax.help.HelpSet hs;
    javax.help.HelpBroker hb;
    javax.help.CSH csh;
    try{
    System.out.println("Helpset name : " + javax.help.HelpSet.findHelpSet(cl,helpHS));
    java.net.URL hsURL = javax.help.HelpSet.findHelpSet(cl,helpHS);
    hs = new javax.help.HelpSet(null, hsURL);
    catch(Exception ee)
    System.out.println("Helpset " + ee.getMessage());
    System.out.println("Helpset " + helpHS + " not found. ");
    return;
    hb = hs.createHelpBroker();
    new javax.help.CSH.DisplayHelpFromSource(hb);

  • WebHelp in Chrome - first look

    Just downloaded the new Chrome browser from Google, and as I
    feared, my WebHelp doesn't work (nav pane contents don't display).
    I am using a skin.
    I tried a test project using the default skin and found that
    only pure html works for navigation pane format (WebHelp Options
    page 3).
    If I use DHTML > Pure HTML the pane comes up empty
    If I use Java Applet > Pure HTML I get a message in the
    pane saying no plugin is available to display the content. The odd
    thing is that I included some drop-down text (which is javascript,
    right?) and that woks fine.
    Pure html is ok, except there's no Search Input field
    available. So, I'd love to be able to use dhtml or Java for the nav
    pane.
    If anyone has an idea for getting this to work I'd be
    grateful for info.
    Jeanne

    I did notice that at least one of the things that MadCap
    pointed out was not true, so one wonders what else isn't true (or
    which version they used as comparison).
    I created a new index, told RH to generate with that index,
    and deleted the old index. The offending text in the Index was
    still there. I have since done a search of topics, and found that
    the offending text was added to the meta tags in several topics
    (e.g., <META NAME="MS-HKWD" CONTENT="BadText">) and removed
    it. I'm regenerating now to see if that fixed it.
    *Most* of the time, when I find RH stupidness, I can find a
    workaround or fix (often with tips from other RH users and
    gurus--thank you, thank you, thank you!). But I've worked with
    numerous technical writers who were not very technical (and some
    barely writers) who would not be able to fix it, and would likely
    have convulsions at the mere thought of editing the .js files.
    Sometimes RH does things for me, because it thinks it knows
    better (and sometimes it does know better). For example, some of
    the projects that I am working on were started 4 or 5 years ago by
    someone else on RHX5. While manually editing the help to "fix" the
    tags, I would occasionally miss a closing tag. Rather than
    highlighting the leftover tag (as Front Page does), RH would say,
    "Oh, what you meant to do is make everything bold!" So then I would
    have to go edit the HTML again (more carefully this time) to get
    rid of all the bold tags.
    I used to use DocToHelp 2000 to create printed docs, then
    generated JavaHelp from them, then had to spend a few weeks editing
    the individual html files. RH causes many fewer headaches for me
    than DocToHelp ever did, but I don't do JavaHelp here. And version
    7 is MUCH improved over the previous versions. Let's hope Adobe
    continues with its awesome support and continues to make
    improvements!

  • Map.xml and context-sensitive help question

    We're changing the tools we use to generate JavaHelp from RoboHelp to WebWorks.
    RoboHelp's output always includes a file named map.xml. WebWorks doesn't include this file.
    My understanding is that map.xml is what applications use to find the correct context-sensitive topic. Is that right? Will the app be able to find context-sensitive files without it?
    Stan Stansbury

    There are a couple of posts about masterdata.xml that seem to indicate it's not a problem. See if either of these help.
    Context Sensitive Help Question
    MasterData.xml
    For the 'main portal page' bit - maybe the developer wants to know the Start Page of the project, rather than the Default Topic? I'm not very familiar with CSH and webhelp, so I'm uncertain of the details the developer needs, but I wouldn't think you'd have to change anything as long as they have all the necessary details.
    Amber

Maybe you are looking for