JavaHelp Methods

Hi,
Is there any place where I can find the information about how to use all the classes and methods included in JavaHelp .jar files (ex: jhall.jar).
I am actually trying to use the JavaHelp as its said in the doc:
I mounted the jhall.jar jar to the system and I'm trying the exemple (merge.java) send with the JavaHelp package. I'm am not able to run it because there is an error with the HelpSet.
The exception is send by this code:
try{
URL hsURL = HelpSet.findHelpSet(null, "../merge/Master.hs");
hs = new HelpSet(null, hsURL);
} catch (Exception ee) {
System.out.println("HelpSet " +" not found");
return;
and is produced to the line: hs = new HelpSet(null, hsURL);
Hope you've got an idea about it
Thanks
Eric

Try this:
make sure your classpath that the directory that
Master.hs is in, and
do not include the directory info in the findHelpSet
call; i.e., do this:
URL hsURL = HelpSet.findHelpSet(null, "Master.hs");

Similar Messages

  • How to get javahelp release install path?

    How to get javahelp release install path?
    currently usage their tool <MagicHelp>.
    magichelp is multi-user help authoring tool,
    currently Support Java help 1.0/2.0.
    Home:http://www.gethelpsoft.com

    @BalusC
    ust for a reference cause i'm new in JSP This has nothing to do with JSP, but with basic knowledge of an essential API. I have given you the link to the File API. Are you saying that you refused to read the API documentation, which clearly explains you how to use the File and shows which methods are all available to you undereach the straightforward getName() method, and expecting that the others may chew the answers for you? Loser.

  • RoboHelp 10 fails to build JavaHelp Search

    When I generate JavaHelp with RoboHelp 10 I have the error below in the console:
    java.io.FileNotFoundException: myProject_JavaHelpSearch\POSITIONS (...)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.sun.java.help.search.DocumentLists.<init>(DocumentLists.java:161)
        at com.sun.java.help.search.DocumentLists.invert(DocumentLists.java:243)
        at com.sun.java.help.search.DefaultIndexBuilder.close(DefaultIndexBuilder.java:103)
        at com.sun.java.help.search.Indexer.compile(Indexer.java:228)
        at com.sun.java.help.search.Indexer.main(Indexer.java:76)
    In the working directoty used for JavaHelp, the "myProject_JavaHelpSearch" sub-directory contains:
    DOCS
    OFFSETS
    TMAP
    The error is not fatal and RoboHelp do generate the JavaHelp file. The JavaHelps displays TOC, Index, and the project pages as expected, but when I try using the "Search" tab in the generated JavaHelp, it does not work.
    If I generate a Microsoft HTML Help or WebHelp, the "Search" tab works fine.
    My project is a former  RoboHelp 9.1 project converted to RoboHelp 10. It was working fine on Windows XP Pro Us (32 bits) + RH 9.1, I'm running now RH 10 on Windows 8 Pro French 64 bits.
    Thanks in advance for any help.

    There is nothing there about Rh10 and it is not a topic I will be updating. Sorry but JavaHelp is not a popular output. Flare does not even offer it for reasons stated in the page on my site.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Exception thrown while doing a full text search in JavaHelp

    hi,
    I am using JavaHelp 2.0_02 in my web application. The Table of contents (TOC ) and the[b] Index work absolutely fine. But when I try to do a text search i get the following exception ..
    Exception while creating engine named com.sun.java.help.search.DefaultSearchEngine
    for view: javax.help.SearchView@1e20a9a
    .. java.lang.reflect.InvocationTargetException
    .. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    .. at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    .. at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    .. at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    .. at javax.help.search.MergingSearchEngine.makeEngine(MergingSearchEngine.java:169)
    .. at javax.help.search.MergingSearchEngine.<init>(MergingSearchEngine.java:63)
    .. at javax.help.tagext.SearchTOCItemTag.doStartTag(SearchTOCItemTag.java:77)
    .. at org.apache.jsp.javax_help_SearchView_jsp._jspService(javax_help_SearchView_jsp.java:101)
    .. at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    .. at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
    at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289)
    at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)
    Caused by: java.security.InvalidParameterException
    at com.sun.java.help.search.DefaultSearchEngine.<init>
    DefaultSearchEngine.java:75)
    ... 28 more
    My Helpset(.hs) file is located in the Help folder of my application and the entry for search is as follows
    <view>
        <name>Search</name>
        <label>Search</label>
        <type>javax.help.SearchView</type>
        <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
       </view>
    </helpset>and the jh.jar file is located in the applications classpath.
    and I have successfully done the indexing using jhindexer
    I searched through many sites including the java forum.. but not able to find a solution.
    Can anyone help me and point out where I could have made a mistake or how to go about this
    thanks in advance

    I had approximate the same problem, and I've fixed it. In my jar file the javaHelpSearch Folder was named with a leading lower case "j". But in my helpset.hs it was with an upper Case "J"
    <name>Search</name>
        <label>Search</label>
        <type>javax.help.SearchView</type>
        <data engine="com.sun.java.help.search.DefaultSearchEngine">JavaHelpSearch</data>
       </view>When the helpset is called from a folder: windows ignore it, but when the helpset is called from into a jar you must type it correct!

  • Enable JavaHelp 1.1.3 to display video

    I'm using JavaHelp 1.1.3 and I'm having trouble getting a video (avi) to display within JavaHelp. With a regular browser, the video displays with no problem. I've tried about 2 different methods so far:
    1. Direct link - no good, JavaHelp spits out a page of bits, bytes and general gibberish.
    2. Separate page using the embed keyword - at least this didn't give a page of gibberish. But all I got was a white page where my video should be with a link back to the prior page underneath.
    Any ideas? I see the documentation talks about creating "lightweight objects" with the OBJECT keyword. Any help would be much appreciated.

    The following code will allow you to play an avi in a secondary window (using JMF) when clicked. I found that only some avi files would play - it is dependent on the encoding.
    Sample object tag:
    <OBJECT CLASSID="java:your.package.name.HelpShowVideo">
    <param name="content" value="file:///C:/Projects/javamedia/tview.avi">
    <param name="viewerActivator" value="javax.help.LinkLabel">
    <param name="viewerStyle" value="javax.help.Popup">
    <param name="text" value=" file:///C:/Projects/javamedia/tview.avi ">
    <param name="textColor" value="blue">
    <param name="textFontSize" value="large">
    <param name="textFontWeight" value="bold">
    <param name="textFontStyle" value="italic">
    Video objects not supported
    </OBJECT>Class code:
    package your.package.name;
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.media.*;
    import javax.swing.*;
    * @author Brendan Ryan using sample Java Media code from
    *         http://developer.java.sun.com/developer/JDCTechTips/2002/tt0219.html
    * @version 1.1 26/10/2003
    public class HelpShowVideo extends com.sun.java.help.impl.JHSecondaryViewer {
        Player player;
        Component center;
        Component south;
        /** Creates new HelpStartBrowser */
        public HelpShowVideo() {
            super();
        /** Called when item is clicked */
        public void actionPerformed(ActionEvent event) {
            String url = this.getContent();
            showVideo(url);
        /** Use Java Media to show Video */
        private void showVideo(final String url) {
            try {
                final JDialog jd = new JDialog();
                final Container contentPane = jd.getContentPane();
                if (player != null) {
                    player.stop();
                player = Manager.createPlayer(new URL(url));
                ControllerListener listener = new ControllerAdapter() {
                    public void realizeComplete(RealizeCompleteEvent event) {
                        Component vc = player.getVisualComponent();
                        if (vc != null) {
                            contentPane.add(vc,BorderLayout.CENTER);
                            center = vc;
                        } else {
                            if (center != null) {
                                contentPane.remove(center);
                                contentPane.validate();
                        Component cpc = player.getControlPanelComponent();
                        if (cpc != null) {
                            contentPane.add(cpc,
                            BorderLayout.SOUTH);
                            south = cpc;
                        } else {
                            if (south != null) {
                                contentPane.remove(south);
                                contentPane.validate();
                        jd.pack();
                        jd.setTitle(url);
                        jd.show();
                player.addControllerListener(listener);
                player.start();
            } catch (Exception e) {
                System.out.println("Video error: " + e);
    }

  • Enabling JavaHelp to open Acrobat for PDF links

    I currently have a working help set which has one or two href links to pdf files.
    When clicked, JavaHelp tries to render these and I get a stream of text - obviously the mime type is not being picked up and the file is being treated as an html.
    I have read about the setKeyData etc. methods which can be used to register a different mime type to be handled with a specified viewer.
    My question is:
    Is it simply a matter of calling the method, setKeyData to tell the HelpSet that a file of mime type pdf is to be handled by a viewer, such as Acrobat? If so has anyone done this?
    Any help is greatly appreciated.
    Cheers
    Aaron

    Here is a simplier code variation that works (only) for applications started using Java Web Start.
    import java.awt.event.ActionEvent;
    import java.net.MalformedURLException;
    import java.net.URL;
    import javax.jnlp.BasicService;
    public class HelpStartBrowser extends com.sun.java.help.impl.JHSecondaryViewer {
        BasicService bs = null;
        /** Creates new HelpStartBrowser */
        public HelpStartBrowser() {
            super();
            // if running from jnlp, then start browser will work
            try {
                // Lookup the javax.jnlp.BasicService object
                bs = (BasicService)javax.jnlp.ServiceManager.lookup("javax.jnlp.BasicService");
                if (!bs.isWebBrowserSupported()) bs = null;
            } catch (javax.jnlp.UnavailableServiceException ue) {
                bs = null;
        /** Called when item is clicked */
        public void actionPerformed(ActionEvent event) {
            String url = this.getContent();
            openBrowser(url);
        /** Use Java Web Start BasicService to start browser */
        private void openBrowser(String url) {
            try {
                if (bs != null)
                    bs.showDocument(new URL(url));
            } catch (MalformedURLException me) {
    }

  • 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 OutOfMemoryError ?!

    I`m getting this error after 20 or 30 openings of different help pages in my application.
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError: Java heap space
            at java.awt.image.DataBufferInt.<init>(Unknown Source)
            at java.awt.image.Raster.createPackedRaster(Unknown Source)
            at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
    n Source)
            at sun.awt.Win32GraphicsConfig.createAcceleratedImage(Unknown Source)
            at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at javax.swing.JViewport.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JSplitPane.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JLayeredPane.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paintToOffscreen(Unknown Source)
            at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
    Exception in thread "Image Fetcher 1" java.lang.OutOfMemoryError: Java heap spac
    e
            at java.awt.image.DataBufferInt.<init>(Unknown Source)
            at java.awt.image.Raster.createPackedRaster(Unknown Source)
            at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
    n Source)
            at sun.awt.image.ImageRepresentation.createBufferedImage(Unknown Source)
            at sun.awt.image.ImageRepresentation.setPixels(Unknown Source)
            at sun.awt.image.ImageDecoder.setPixels(Unknown Source)
            at sun.awt.image.JPEGImageDecoder.sendPixels(Unknown Source)
            at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
            at sun.awt.image.JPEGImageDecoder.produceImage(Unknown Source)
            at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
            at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
            at sun.awt.image.ImageFetcher.run(Unknown Source)
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError: Java heap space
            at java.awt.image.DataBufferInt.<init>(Unknown Source)
            at java.awt.image.Raster.createPackedRaster(Unknown Source)
            at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
    n Source)
            at sun.awt.Win32GraphicsConfig.createAcceleratedImage(Unknown Source)
            at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at javax.swing.JViewport.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintToOffscreen(Unknown Source)
            at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
            at javax.swing.RepaintManager.paint(Unknown Source)
            at javax.swing.JComponent._paintImmediately(Unknown Source)
            at javax.swing.JComponent.paintImmediately(Unknown Source)
            at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
            at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
            at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
            at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
    n Source)
            at java.awt.event.InvocationEvent.dispatch(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.Dialog$1.run(Unknown Source)
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError: Java heap space
            at java.awt.image.DataBufferInt.<init>(Unknown Source)
            at java.awt.image.Raster.createPackedRaster(Unknown Source)
            at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknow
    n Source)
            at sun.awt.Win32GraphicsConfig.createAcceleratedImage(Unknown Source)
            at sun.awt.windows.WComponentPeer.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at java.awt.Component.createImage(Unknown Source)
            at javax.swing.JViewport.paint(Unknown Source)
            at javax.swing.JComponent.paintChildren(Unknown Source)
            at javax.swing.JComponent.paint(Unknown Source)
            at javax.swing.JComponent.paintToOffscreen(Unknown Source)
            at javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
            at javax.swing.RepaintManager.paint(Unknown Source)
            at javax.swing.JComponent._paintImmediately(Unknown Source)
            at javax.swing.JComponent.paintImmediately(Unknown Source)
            at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
            at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
            at javax.swing.RepaintManager.seqPaintDirtyRegions(Unknown Source)
            at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknow
    n Source)
            at java.awt.event.InvocationEvent.dispatch(Unknown Source)
            at java.awt.EventQueue.dispatchEvent(Unknown Source)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
            at java.awt.Dialog$1.run(Unknown Source)
    Exception occurred during event dispatching:
    java.lang.OutOfMemoryError: Java heap spaceI`m using jdk 1.5 with JavaHelp 2.
    Is there any way to keep this help without giving me this error

    you are facing the problem of java heap space. just maximize your JVM pool space by using command.
    java -Xms[Min Memory] -Xmx[Max Memory]
    for example java -Xms40m -Xmx256m

  • JavaHelp for web app?

    Hello,
    I'm trying to include JavaHelp for our web application.
    Has anyone used this tool or any other tool with javascript for displaying help for web apps?
    I tried to follow the browser demo that is in applet and comes with javahelp zip. It worked fine for me, but when tried to follow the same setting for the web application, I am getting this error.
    java.lang.NoClassDefFoundError: Could not initialize class com.inmedius.mentor.support.amecr.JavaHelpApplet
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
         at java.lang.reflect.Constructor.newInstance(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)I know it cannot find the class, but I'm not sure how to configure it.
    I have the following call to applet:
    <Applet WIDTH = 26 HEIGHT = 26  codebase="http://tetra:80/AMECR" code = "com.inmedius.mentor.support.amecr.JavaHelpApplet.class" archive="AMECR.war">
         <PARAM NAME = HELPSETURL VALUE ="AMECR/GAPIHelp.hs">
         <PARAM NAME = HELPSETNAME VALUE ="GAPIHelp">
    </Applet>Also, since applet approach is not that much favored, do you know if any other way to include this tool within web applications or any other tool that would do the same thing?
    Any input is greatly appreciated.
    Thanks,

    Yes, as long as you conform to what the HelpSet specifies you can use Servlets / JSPs.

  • 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 initialization problem

    In my project, I used JavaHelp to create project help function. The following is party of HelpVolumeC.java source code.
    Here I used main thread to initialize main gui, at that time used another thread to invoke HelpVolumeC.getHvcInstance().
    at first time java help gui cannot be displayed. However when reinitialize main gui, then java help gui is ok.
    Somebody has meet this kind of issue? Could give me some advise? thanks!
    Here DefaultHelpBroker.initPresentation() is invoked in the second thread.
    I think it maybe when you use helpbroker, if it is not initialized completly, it will not be used correctly.
    that mean when you use helpbroker, it must be initialized completly. I dont know am I right.
    party of initializing of main gui in main thread
    // Set the plugin
    MjmController.setPlugin(this);
    // Create the controller
    mjm = MjmController.getPluginInstance();
    if (mjm != null) {
    _hvc = HelpVolumeC.getHvcInstance();
    // have to put this here, so we make sure it queued after the panel
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    running = mjm.isRunning();
    if (mjm.getFrameParent() != null) {
    mjm.getFrameParent().toFront();
    party of HelpVolumeC.java
    private static synchronized void loadLibrary() {
    if(!isLibraryLoaded() && !isLibraryLoading() && !libraryLoadFailed)
    try {
    URL hsURL = null;
    ClassLoader libraryClassLoader;
    if (HelpPropertiesC.getLibraryURL() == "") {
    report("loadLibrary(): Location of help system not defined.");
    libraryClassLoader = com/ops/inmP/commonuiP/helpP/HelpVolumeC.getClassLoader();
    } else {
    report((new StringBuilder()).append("loadLibrary(): Attempting to load help system from: ").append(HelpPropertiesC.getLibraryURL()).toString());
    libraryClassLoader = new URLClassLoader(new URL[] {new URL(HelpPropertiesC.getLibraryURL())}, null);
    hsURL = HelpSet.findHelpSet(libraryClassLoader, "master.hs");
    if (hsURL == null) {
    report("loadLibrary(): Failed to load helpset. Help unavailable.");
    libraryLoadFailed = true;
    } else {
    report("loadLibrary(): Found helpset - master.hs");
    theHelpSet = new HelpSet(null, hsURL);
    theHelpBroker = new DefaultHelpBroker();
    theHelpBroker.setHelpSet(theHelpSet);
    Runnable initHelp = new Runnable() {
    public void run() {
    try {
    HelpVolumeC.theHelpBroker.initPresentation();
    WindowPresentation pres = ((DefaultHelpBroker)HelpVolumeC.theHelpBroker).getWindowPresentation();
    java.awt.Window win = pres.getHelpWindow();
    JFrame helpWindow = (JFrame)win;
    ImageIcon nortelLogo = new ImageIcon(com/ops/inmP/commonuiP/helpP/HelpVolumeC.getResource("globemark.gif"));
    if(nortelLogo != null)
    helpWindow.setIconImage(nortelLogo.getImage());
    else
    HelpVolumeC.report("loadLibrary(): Failed to display Nortel Logo icon in Help window.");
    HelpVolumeC.libraryLoaded = true;
    HelpVolumeC.libraryLoading = false;
    } catch(Throwable t) {
    HelpVolumeC.report((new StringBuilder()).append("loadLibrary(): initHelp thread - initPresentation() failed. Help unavailable.Caught the throwable ").append(HelpVolumeC.getStackTrace(t)).toString());
    HelpVolumeC.libraryLoadFailed = true;
    HelpVolumeC.libraryLoading = false;
    Thread initHelpThread = new Thread(initHelp);
    initHelpThread.start();
    libraryLoading = true;
    HelpTriggerC.setHelpBroker(theHelpBroker);
    } catch(Throwable t) {
    report((new StringBuilder()).append("loadLibrary() - Library load failed. Help unavailable.Caught the throwable ").append(getStackTrace(t)).toString());
    libraryLoadFailed = true;
    private void initialize(String volumeName) {
    loadLibrary();
    if (isLibraryLoaded() || isLibraryLoading()) {
    triggers = new LinkedList();
    this.volumeName = volumeName;
    volumeExists = true;
    * @deprecated Method HelpVolumeC is deprecated
    public HelpVolumeC() {
    volumeExists = false;
    volumeName = "";
    triggers = null;
    initialize("");
    public static HelpVolumeC getHvcInstance() {
    if(theInstance == null)
    theInstance = new HelpVolumeC();
    return theInstance;
    }

    Yes u cannot do a Init after a Full.
    Make the Full Load a Repair Full.
    Se 38 - Source Code - RSSM_SET_REPAIR_FULL_FLAG
    Give the ODS name , Datasource & Source System n Make it Reparir Full
    Have a look at this note : Note 689964 - ODS object: Switching from a full to delta upload
    If this has to be done before loading - U can jst flag the Repair Full feature in Infopackage - Scheduler - Repair Full.
    Message was edited by:
            Jr Roberto

  • URGENT: Launching JavaHelp

    Hi all.
    When I try to call the javahelp set in my code absolutely nothing happens. No exceptions, nothing. I am sure that the file is accessed and that the actionlistener is called. I am also sure that jh.jar is in the classpath.
    Please help!!! This is really really urgent!
    Thanx.
    Comlink
    CODE:
    =====
      //  WHIZPOINT ATHLETICS V1.00
      //  === Main ===
      //  Main program class.  Basically the GUI and menu
      //  system.  Also displays points summary and time/
      //  keystatus
      //  =============
      //  (c) KOBUS EHLERS (HJS)
      //  WHIZBIZ 2003
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import javax.swing.event.*;
    import java.util.*;
    import javax.swing.filechooser.*;
    import java.io.*;
    import javax.help.*;
    import java.net.*;
    public class Main
        extends JFrame
        implements ActionListener, Runnable {
      Font customFont1 = new Font("SansSerif", Font.BOLD, 18);
      Font customFont2 = new Font("SansSerif", Font.PLAIN, 12);
      static String filename = new String(Load.filename);
      JPanel pan5 = new JPanel();
      JPanel pan4 = new JPanel();
      JPanel pan3 = new JPanel();
      JPanel pan2 = new JPanel();
      JPanel pan1 = new JPanel();
      JMenuBar menuBar;
      JMenu menu, submenu;
      JMenuItem menuItem;
      TitledBorder titledBorder1;
      JMenu jMenu1 = new JMenu();
      JMenuItem jMenuItem1 = new JMenuItem();
      JMenuItem jMenuItem2 = new JMenuItem();
      JMenuItem jMenuItem3 = new JMenuItem();
      JMenuItem jMenuItem4 = new JMenuItem();
      JMenuItem jMenuItem5 = new JMenuItem();
      JMenuItem jMenuItem6 = new JMenuItem();
      JMenu jMenu2 = new JMenu();
      JMenu jMenu3 = new JMenu();
      JMenu jMenu4 = new JMenu();
      JMenu jMenu5 = new JMenu();
      JMenuItem jMenuItem9 = new JMenuItem();
      JMenuItem jMenuItem10 = new JMenuItem();
      JMenuItem jMenuItem11 = new JMenuItem();
      JMenuItem jMenuItem13 = new JMenuItem();
      JMenuItem jMenuItem17 = new JMenuItem();
      JLabel Time = new JLabel();
      JLabel NUM = new JLabel();
      JLabel CAPS = new JLabel();
      JLabel SCRL = new JLabel();
      JLabel Jreg = new JLabel();
      BorderLayout borderLayout1 = new BorderLayout();
      FlowLayout flowLayout1 = new FlowLayout();
      Thread runner;
      JMenuItem jMenuItem18 = new JMenuItem();
      BorderLayout borderLayout2 = new BorderLayout();
      BorderLayout borderLayout3 = new BorderLayout();
      JPanel Left = new JPanel();
      JPanel Right = new JPanel();
      BorderLayout borderLayout4 = new BorderLayout();
      JPanel Top = new JPanel();
      JPanel Bottom = new JPanel();
      JLabel jLabel1 = new JLabel();
      JLabel jLabel2 = new JLabel();
      JLabel jLabel3 = new JLabel();
      GridBagLayout gridBagLayout1 = new GridBagLayout();
      JLabel G1 = new JLabel();
      JLabel G2 = new JLabel();
      JLabel G3 = new JLabel();
      JLabel G4 = new JLabel();
      JLabel G5 = new JLabel();
      JLabel G6 = new JLabel();
      JLabel G7 = new JLabel();
      JLabel G8 = new JLabel();
      JLabel G9 = new JLabel();
      JLabel G10 = new JLabel();
      JLabel G11 = new JLabel();
      JLabel G12 = new JLabel();
      JLabel H1 = new JLabel();
      JLabel H2 = new JLabel();
      JLabel H3 = new JLabel();
      JLabel H4 = new JLabel();
      JLabel H7 = new JLabel();
      JLabel H5 = new JLabel();
      JLabel H8 = new JLabel();
      JLabel H6 = new JLabel();
      JLabel H11 = new JLabel();
      JLabel H12 = new JLabel();
      JLabel H9 = new JLabel();
      JLabel H10 = new JLabel();
      GridBagLayout gridBagLayout2 = new GridBagLayout();
      JMenuItem jMenuItem19 = new JMenuItem();
      JMenuItem jMenuItem20 = new JMenuItem();
      JMenu jMenu6 = new JMenu();
      JMenuItem jMenuItem7 = new JMenuItem();
      JMenuItem jMenuItem8 = new JMenuItem();
      JMenuItem jMenuItem12 = new JMenuItem();
      JMenu jMenu7 = new JMenu();
      JMenuItem jMenuItem16 = new JMenuItem();
      JMenuItem jMenuItem21 = new JMenuItem();
      JMenuItem jMenuItem14 = new JMenuItem();
      public Main() {
        super("WHIZpoint Athletics 1.00");
        setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        setSize(800, 600);
        setVisible(true);
        start();
        try {
          jbInit();
        catch (Exception e) {
          e.printStackTrace();
      public void actionPerformed(ActionEvent event) {
        if (event.getActionCommand() == "Exit") {
          int kkl = JOptionPane.showConfirmDialog(this,
              "Do you REALLY want to exit WHIZpoint Athletics?",
              "Confirm Exit",
              JOptionPane.YES_NO_OPTION);
          if (kkl == JOptionPane.YES_OPTION) {
            System.exit(0);
        if (event.getActionCommand() == "Events") {
          DB.reload();
          new Event();
        if (event.getActionCommand() == "Teams") {
          DB.reload();
          new Team();
        if (event.getActionCommand() == "Athletes") {
          DB.reload();
          new Athlete();
        if (event.getActionCommand() == "Meet Setup") {
          new MeetSetUp();
        if (event.getActionCommand() == "Contents") {
          try
            File f = new File("help/helpset.hs");
            URL url = f.toURL();
            HelpSet hs = new HelpSet (null, url);
            HelpBroker hb = hs.createHelpBroker();
            new CSH.DisplayHelpFromSource(hb);
          catch (Exception a)
            System.out.print(a);
        if (event.getActionCommand() == "Scoring Setup") {
          new ScoringSetUp();
        if (event.getActionCommand() == "Seeding") {
          DB.reload();
          new Seeding();
        if (event.getActionCommand() == "About") {
          new About();
        if (event.getActionCommand() == "New Meet") {
          this.dispose();
          new Load();
        if (event.getActionCommand() == "Load Meet") {
          this.dispose();
          new Load();
        if (event.getActionCommand() == "Entries per Event") {
          DB.reload();
          new Entry();
        if (event.getActionCommand() == "RUN MEET") {
          DB.reload();
          new Run();
        if (event.getActionCommand() == "Track Events") {
          new Report(11);
        if (event.getActionCommand() == "Field Events") {
          new Report(12);
          new Report(13);
        if (event.getActionCommand() == "Time Table") {
          new Report(2);
        if (event.getActionCommand() == "Fill-In Program") {
          new Report(3);
        if (event.getActionCommand() == "Complete Report") {
          new Report(4);
        if (event.getActionCommand() == "Summary") {
          new Report(5);
        if (event.getActionCommand() == "Details") {
          new Report(6);
      public static void FileError(){
        JOptionPane.showMessageDialog(null,
            "ERROR: Please ensure that you have selected a valid file name and destination \nand that you have the neccessary rights to access this resource.\nAlso ensure that the file is not Read-Only.", "File Error",
            JOptionPane.WARNING_MESSAGE);
    //////////////////////////////CLOCK//////////////////////
      public void run() {
        while (runner == Thread.currentThread()) {
          DB.MeetSelect();
          jLabel1.setText(DB.MName1);
          jLabel2.setText(DB.MName2);
          jLabel3.setText(dateNow()+DB.MLocation);
          DB.PointsSelect();
          G1.setText(DB.PPoint[0][0]);
          G2.setText(DB.PPoint[1][0]);
          G3.setText(DB.PPoint[2][0]);
          G4.setText(DB.PPoint[3][0]);
          G5.setText(DB.PPoint[4][0]);
          G6.setText(DB.PPoint[5][0]);
          G7.setText(DB.PPoint[6][0]);
          G8.setText(DB.PPoint[7][0]);
          G9.setText(DB.PPoint[8][0]);
          G10.setText(DB.PPoint[9][0]);
          G11.setText(DB.PPoint[10][0]);
          G12.setText(DB.PPoint[11][0]);
          H1.setText(DB.PPoint[0][1]);
          H2.setText(DB.PPoint[1][1]);
          H3.setText(DB.PPoint[2][1]);
          H4.setText(DB.PPoint[3][1]);
          H5.setText(DB.PPoint[4][1]);
          H6.setText(DB.PPoint[5][1]);
          H7.setText(DB.PPoint[6][1]);
          H8.setText(DB.PPoint[7][1]);
          H9.setText(DB.PPoint[8][1]);
          H10.setText(DB.PPoint[9][1]);
          H11.setText(DB.PPoint[10][1]);
          H12.setText(DB.PPoint[11][1]);
          Time.setText(timeNow() + "   ");
          if (Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK)==true) CAPS.setText("CAPS");
          else CAPS.setText("");
          if (Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_NUM_LOCK)==true) NUM.setText("NUM");
          else NUM.setText("");
          if (Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_SCROLL_LOCK)==true) SCRL.setText("SCROLL");
          else SCRL.setText("");
          pan5.repaint();
          pan4.repaint();
          pan3.repaint();
          pan2.repaint();
          Bottom.repaint();
          Left.repaint();
          try {
            Thread.sleep(1000);
          catch (InterruptedException e) {}
      public void start()
        if(runner == null) runner = new Thread(this);
          runner.start();
      public String zero (int num)
        String number=(num<10)?("0"+num):(""+num);
        return number;
      public String month (int num)
        String month="";
        switch(num)
          case 0:
            month = "January";
            break;
          case 1:
            month = "February";
            break;
          case 2:
            month = "March";
            break;
          case 3:
            month = "April";
            break;
          case 4:
            month = "May";
            break;
          case 5:
            month = "June";
            break;
          case 6:
            month = "July";
            break;
          case 7:
            month = "August";
            break;
          case 8:
            month = "September";
            break;
          case 9:
            month = "October";
            break;
          case 10:
            month = "November";
            break;
          case 11:
            month = "December";
            break;
        return month;
      public String day (int num)
        String day="";
        switch(num)
          case 1:
            day = "Sunday";
            break;
          case 2:
            day = "Monday";
            break;
          case 3:
            day = "Tuesday";
            break;
          case 4:
            day = "Wednesday";
            break;
          case 5:
            day = "Thursday";
            break;
          case 6:
            day = "Friday";
            break;
          case 7: day="Saterday";
            break;
        return day;
      public String dateNow()
        Calendar now = Calendar.getInstance();
        int longday = now.get(Calendar.DAY_OF_WEEK);
        int day = now.get(Calendar.DAY_OF_MONTH);
        int month = now.get(Calendar.MONTH);
        int year = now.get(Calendar.YEAR);
        String date = day(longday)+", "+zero(day)+" "+month(month)+" "+year+" - ";
        return date;
      public String timeNow()
        Calendar now = Calendar.getInstance();
        int hrs = now.get(Calendar.HOUR_OF_DAY);
        int min = now.get(Calendar.MINUTE);
        int sec = now.get(Calendar.SECOND);
        String time = zero(hrs)+":"+zero(min)+":"+zero(sec);
        return time;
      ///////////////////////////SETUP SWING FRAME////////////////////////
      private void jbInit() throws Exception {
        titledBorder1 = new TitledBorder("");
        this.getContentPane().setLayout(borderLayout1);
        this.setIconImage(new ImageIcon("icon1.gif").getImage());
        this.setResizable(true);
        this.setTitle("WHIZpoint Athletics .:. Ver 1.00");
        menuBar = new JMenuBar();
        setJMenuBar(menuBar);
        menu = new JMenu("Menu");
        menu.setText("File");
        jMenu1.setText("Setup");
        jMenuItem1.setText("New Meet");
        jMenuItem2.setText("Load Meet");
        jMenuItem3.setText("Events");
        jMenuItem4.setText("Teams");
        jMenuItem5.setText("Athletes");
        jMenuItem6.setText("Meet Setup");
        jMenu2.setText("Entries");
        jMenu3.setText("Reports");
        jMenu4.setActionCommand("Run");
        jMenu4.setText("Run");
        jMenu5.setText("Help");
        jMenuItem9.setText("Exit");
        jMenuItem10.setText("Scoring Setup");
        jMenuItem11.setText("Entries per Event");
        jMenuItem13.setText("Complete Report");
        jMenuItem17.setText("Contents");
        jMenuItem18.setText("Seeding");
        Right.setPreferredSize(new Dimension(400, 10));
        Right.setLayout(borderLayout4);
        Bottom.setLayout(gridBagLayout1);
        jLabel1.setFont(new java.awt.Font("SansSerif", 1, 24));
        jLabel1.setForeground(new Color(2, 98, 246));
        jLabel1.setMaximumSize(new Dimension(300, 35));
        jLabel1.setMinimumSize(new Dimension(300, 35));
        jLabel1.setPreferredSize(new Dimension(300, 35));
        jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
        jLabel1.setHorizontalTextPosition(SwingConstants.CENTER);
        jLabel2.setFont(new java.awt.Font("SansSerif", 1, 18));
        jLabel2.setMaximumSize(new Dimension(300, 25));
        jLabel2.setMinimumSize(new Dimension(300, 25));
        jLabel2.setPreferredSize(new Dimension(300, 25));
        jLabel2.setHorizontalAlignment(SwingConstants.CENTER);
        jLabel2.setHorizontalTextPosition(SwingConstants.CENTER);
        jLabel3.setFont(new java.awt.Font("SansSerif", 0, 14));
        jLabel3.setMaximumSize(new Dimension(300, 20));
        jLabel3.setMinimumSize(new Dimension(300, 20));
        jLabel3.setPreferredSize(new Dimension(300, 20));
        jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
        jLabel3.setHorizontalTextPosition(SwingConstants.CENTER);
        Left.setLayout(gridBagLayout2);
        Left.setMinimumSize(new Dimension(254, 398));
        Left.setPreferredSize(new Dimension(300, 400));
        JLabel bg = new JLabel(new ImageIcon("bg.gif"));
        bg.setDoubleBuffered(true);
        bg.setMaximumSize(new Dimension(300, 398));
        bg.setMinimumSize(new Dimension(300, 398));
        bg.setHorizontalTextPosition(SwingConstants.CENTER);
        bg.setOpaque(false);
        bg.setPreferredSize(new Dimension(300, 398));
        G1.setText(" ");
        G2.setText(" ");
        G3.setText(" ");
        G4.setText(" ");
        G5.setText(" ");
        G6.setText(" ");
        G7.setText(" ");
        G8.setText(" ");
        G9.setText(" ");
        G10.setText(" ");
        G11.setText(" ");
        G12.setText(" ");
        H1.setText(" ");
        H2.setText(" ");
        H3.setText(" ");
        H4.setText(" ");
        H5.setText(" ");
        H6.setText(" ");
        H7.setText(" ");
        H8.setText(" ");
        H9.setText(" ");
        H10.setText(" ");
        H11.setText(" ");
        H12.setText(" ");
        G1.setFont(new java.awt.Font("SansSerif", 1, 16));
        G1.setMaximumSize(new Dimension(180, 21));
        G1.setMinimumSize(new Dimension(180, 21));
        G1.setPreferredSize(new Dimension(180, 21));
        G2.setPreferredSize(new Dimension(180, 20));
        G2.setMinimumSize(new Dimension(180, 21));
        G2.setMaximumSize(new Dimension(180, 21));
        G2.setFont(new java.awt.Font("SansSerif", 1, 16));
        G3.setFont(new java.awt.Font("SansSerif", 1, 16));
        G3.setMaximumSize(new Dimension(180, 21));
        G3.setMinimumSize(new Dimension(180, 21));
        G3.setPreferredSize(new Dimension(180, 20));
        G4.setPreferredSize(new Dimension(180, 21));
        G4.setMinimumSize(new Dimension(180, 21));
        G4.setMaximumSize(new Dimension(180, 21));
        G4.setFont(new java.awt.Font("SansSerif", 1, 16));
        G5.setFont(new java.awt.Font("SansSerif", 1, 16));
        G5.setMaximumSize(new Dimension(180, 21));
        G5.setMinimumSize(new Dimension(180, 21));
        G5.setPreferredSize(new Dimension(180, 20));
        G6.setPreferredSize(new Dimension(180, 21));
        G6.setMinimumSize(new Dimension(180, 21));
        G6.setMaximumSize(new Dimension(180, 21));
        G6.setFont(new java.awt.Font("SansSerif", 1, 16));
        G7.setFont(new java.awt.Font("SansSerif", 1, 16));
        G7.setMaximumSize(new Dimension(180, 21));
        G7.setMinimumSize(new Dimension(180, 21));
        G7.setPreferredSize(new Dimension(180, 20));
        G8.setPreferredSize(new Dimension(180, 21));
        G8.setMinimumSize(new Dimension(180, 21));
        G8.setMaximumSize(new Dimension(180, 21));
        G8.setFont(new java.awt.Font("SansSerif", 1, 16));
        G9.setFont(new java.awt.Font("SansSerif", 1, 16));
        G9.setMaximumSize(new Dimension(180, 21));
        G9.setMinimumSize(new Dimension(180, 21));
        G9.setPreferredSize(new Dimension(180, 20));
        G10.setPreferredSize(new Dimension(180, 21));
        G10.setMinimumSize(new Dimension(180, 21));
        G10.setMaximumSize(new Dimension(180, 21));
        G10.setFont(new java.awt.Font("SansSerif", 1, 16));
        G11.setPreferredSize(new Dimension(180, 20));
        G11.setMinimumSize(new Dimension(180, 21));
        G11.setMaximumSize(new Dimension(180, 21));
        G11.setFont(new java.awt.Font("SansSerif", 1, 16));
        G12.setFont(new java.awt.Font("SansSerif", 1, 16));
        G12.setMaximumSize(new Dimension(180, 21));
        G12.setMinimumSize(new Dimension(180, 21));
        G12.setPreferredSize(new Dimension(180, 21));
        H1.setFont(new java.awt.Font("Dialog", 1, 16));
        H1.setMaximumSize(new Dimension(30, 19));
        H1.setMinimumSize(new Dimension(30, 19));
        H1.setPreferredSize(new Dimension(20, 21));
        H2.setPreferredSize(new Dimension(20, 21));
        H2.setMinimumSize(new Dimension(30, 19));
        H2.setMaximumSize(new Dimension(30, 19));
        H2.setFont(new java.awt.Font("Dialog", 1, 16));
        H3.setPreferredSize(new Dimension(20, 21));
        H3.setMinimumSize(new Dimension(30, 19));
        H3.setMaximumSize(new Dimension(30, 19));
        H3.setFont(new java.awt.Font("Dialog", 1, 16));
        H4.setFont(new java.awt.Font("Dialog", 1, 16));
        H4.setMaximumSize(new Dimension(30, 19));
        H4.setMinimumSize(new Dimension(30, 19));
        H4.setPreferredSize(new Dimension(20, 21));
        H7.setFont(new java.awt.Font("Dialog", 1, 16));
        H7.setMaximumSize(new Dimension(30, 19));
        H7.setMinimumSize(new Dimension(30, 19));
        H7.setPreferredSize(new Dimension(20, 21));
        H5.setPreferredSize(new Dimension(20, 21));
        H5.setMinimumSize(new Dimension(30, 19));
        H5.setMaximumSize(new Dimension(30, 19));
        H5.setFont(new java.awt.Font("Dialog", 1, 16));
        H8.setPreferredSize(new Dimension(20, 21));
        H8.setMinimumSize(new Dimension(30, 19));
        H8.setMaximumSize(new Dimension(30, 19));
        H8.setFont(new java.awt.Font("Dialog", 1, 16));
        H6.setFont(new java.awt.Font("Dialog", 1, 16));
        H6.setMaximumSize(new Dimension(30, 19));
        H6.setMinimumSize(new Dimension(30, 19));
        H6.setPreferredSize(new Dimension(20, 21));
        H11.setPreferredSize(new Dimension(20, 21));
        H11.setMinimumSize(new Dimension(30, 19));
        H11.setMaximumSize(new Dimension(30, 19));
        H11.setFont(new java.awt.Font("Dialog", 1, 16));
        H12.setFont(new java.awt.Font("Dialog", 1, 16));
        H12.setMaximumSize(new Dimension(30, 19));
        H12.setMinimumSize(new Dimension(30, 19));
        H12.setPreferredSize(new Dimension(20, 21));
        H9.setFont(new java.awt.Font("Dialog", 1, 16));
        H9.setMaximumSize(new Dimension(30, 19));
        H9.setMinimumSize(new Dimension(30, 19));
        H9.setPreferredSize(new Dimension(20, 21));
        H10.setPreferredSize(new Dimension(20, 21));
        H10.setMinimumSize(new Dimension(30, 19));
        H10.setMaximumSize(new Dimension(30, 19));
        H10.setFont(new java.awt.Font("Dialog", 1, 16));
        jMenuItem19.setActionCommand("RUN MEET");
        jMenuItem19.setText("RUN MEET!");
        jMenuItem20.setText("About");
        jMenu6.setText("Points Position");
        jMenuItem7.setText("Summary");
        jMenuItem8.setText("Details");
        jMenuItem12.setText("Fill-In Program");
        jMenu7.setActionCommand("Field Cards");
        jMenu7.setText("Field Cards");
        jMenuItem16.setText("Track Events");
        jMenuItem21.setText("Field Events");
        jMenuItem14.setText("Time Table");
        menuBar.add(menu);
        menuBar.add(jMenu1);
        menuBar.add(jMenu2);
        menuBar.add(jMenu3);
        menuBar.add(jMenu4);
        menuBar.add(jMenu5);
        menu.add(jMenuItem1);
        menu.add(jMenuItem2);
        menu.addSeparator();
        menu.add(jMenuItem9);
        jMenu1.add(jMenuItem3);
        jMenu1.add(jMenuItem4);
        jMenu1.add(jMenuItem5);
        jMenu1.addSeparator();
        jMenu1.add(jMenuItem6);
        jMenu1.add(jMenuItem10);
        jMenu2.add(jMenuItem11);
        jMenu2.addSeparator();
        jMenu2.add(jMenuItem18);
        jMenu3.add(jMenu7);
        jMenu3.addSeparator();
        jMenu3.add(jMenuItem14);
        jMenu3.add(jMenuItem12);
        jMenu3.addSeparator();
        jMenu3.add(jMenuItem13);
        jMenu3.add(jMenu6);
        jMenu5.add(jMenuItem17);
        jMenu5.addSeparator();
        jMenu5.add(jMenuItem20);
        jMenuItem1.addActionListener(this);
        jMenuItem2.addActionListener(this);
        jMenuItem3.addActionListener(this);
        jMenuItem4.addActionListener(this);
        jMenuItem5.addActionListener(this);
        jMenuItem6.addActionListener(this);
        jMenuItem7.addActionListener(this);
        jMenuItem8.addActionListener(this);
        jMenuItem9.addActionListener(this);
        jMenuItem10.addActionListener(this);
        jMenuItem11.addActionListener(this);
        jMenuItem12.addActionListener(this);
        jMenuItem13.addActionListener(this);
        jMenuItem14.addActionListener(this);
        jMenuItem16.addActionListener(this);
        jMenuItem17.addActionListener(this);
        jMenuItem18.addActionListener(this);
        jMenuItem19.addActionListener(this);
        jMenuItem20.addActionListener(this);
        jMenuItem21.addActionListener(this);
        JPanel statusbar = new JPanel();
        statusbar.setLayout(new BoxLayout(statusbar,BoxLayout.X_AXIS));
        statusbar.setPreferredSize(new Dimension(600,20));
        pan1.setBorder(BorderFactory.createBevelBorder(1));
        pan1.setPreferredSize(new Dimension(400,20));
        pan1.setBackground(new Color(233, 233, 233));
        pan1.setLayout(new BorderLayout());
        statusbar.add(pan1);
        pan2.setBorder(BorderFactory.createBevelBorder(1));
        pan2.setPreferredSize(new Dimension(20,20));
        pan2.setBackground(new Color(233, 233, 233));
        pan2.setLayout(new BorderLayout());
        statusbar.add(pan2);
        pan3.setBorder(BorderFactory.createBevelBorder(1));
        pan3.setPreferredSize(new Dimension(20,20));
        pan3.setBackground(new Color(233, 233, 233));
        pan3.setLayout(new BorderLayout());
        statusbar.add(pan3);
        pan4.setBorder(BorderFactory.createBevelBorder(1));
        pan4.setBackground(new Color(233, 233, 233));
        pan4.setPreferredSize(new Dimension(20,20));
        pan4.setLayout(new BorderLayout());
        statusbar.add(pan4);
        pan5.setBorder(BorderFactory.createBevelBorder(1));
        pan5.setPreferredSize(new Dimension(200,20));
        pan5.setBackground(new Color(233, 233, 233));
        pan5.setLayout(new BorderLayout());
        statusbar.add(pan5);
        Jreg.setText(" Registered to DEMO SCHOOL");
        pan1.add(Jreg, BorderLayout.NORTH);
        CAPS.setText("");
        CAPS.setHorizontalAlignment(0);
        pan3.add(CAPS, BorderLayout.CENTER);
        NUM.setText("");
        NUM.setHorizontalAlignment(0);
        pan2.add(NUM, BorderLayout.CENTER);
        SCRL.setText("");
        SCRL.setHorizontalAlignment(0);
        pan4.add(SCRL, BorderLayout.CENTER);
        Time.setText(timeNow()+"   ");
        pan5.add(Time, BorderLayout.EAST);
        this.getContentPane().add(statusbar, BorderLayout.SOUTH);
    ///////////////////Image LOADING///////////////////////
        JLabel logo1 = new JLabel(new ImageIcon("logo1.gif"));
        logo1.setDoubleBuffered(true);
        Top.add(logo1);
        this.setExtendedState(MAXIMIZED_BOTH);
        this.getContentPane().add(Left, BorderLayout.WEST);
        this.getContentPane().add(Right, BorderLayout.EAST);
        Right.add(Top, BorderLayout.NORTH);
        Right.add(Bottom, BorderLayout.CENTER);
        Bottom.add(jLabel3,   new GridBagConstraints(0, 2, 2, 1, 0.0, 0.0
                ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(18, 2, 63, 3), 0, 0));
        Bottom.add(jLabel1,   new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
                ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(29, 3, 0, 3), 0, 0));
        Bottom.add(jLabel2,                  new GridBagConstraints(0, 1, 3, 1, 0.0, 0.0
                ,GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets(0, 1, 0, 4), 0, 0));
        Left.add(G4,  new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 57, 0, 0), 0, 0));
        Left.add(G1,    new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(47, 57, 0, 0), 0, 0));
        Left.add(G2,  new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 57, 0, 0), 0, 0));
        Left.add(G3,  new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(7, 57, 0, 0), 0, 0));
        Left.add(G5,  new GridBagConstraints(0, 4, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 57, 0, 0), 0, 0));
        Left.add(G6,  new GridBagConstraints(0, 5, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(7, 57, 0, 0), 0, 0));
        Left.add(G7,  new GridBagConstraints(0, 6, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 57, 0, 0), 0, 0));
        Left.add(G8,  new GridBagConstraints(0, 7, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 57, 0, 0), 0, 0));
        Left.add(G10,  new GridBagConstraints(0, 9, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 57, 0, 0), 0, 0));
        Left.add(G12,  new GridBagConstraints(0, 10, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 57, 0, 0), 0, 0));
        Left.add(G11,  new GridBagConstraints(0, 11, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 57, 46, 0), 0, 0));
        Left.add(H1,         new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(47, 9, 0, 19), 13, 0));
        Left.add(H2,    new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 9, 0, 19), 11, 0));
        Left.add(G9,  new GridBagConstraints(0, 8, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 57, 0, 0), 0, 0));
        Left.add(H3,    new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 9, 0, 19), 14, 0));
        Left.add(H4,    new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 9, 0, 19), 11, 0));
        Left.add(H6,    new GridBagConstraints(1, 5, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(8, 9, 0, 19), 13, 0));
        Left.add(H5,    new GridBagConstraints(1, 4, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(6, 9, 0, 19), 9, 0));
        Left.add(H8,     new GridBagConstraints(1, 7, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 9, 0, 19), 12, 0));
        Left.add(H7,    new GridBagConstraints(1, 6, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(9, 9, 0, 19), 10, 0));
        Left.add(H9,    new GridBagConstraints(1, 8, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(11, 9, 0, 19), 10, 0));
        Left.add(H10,    new GridBagConstraints(1, 9, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(11, 9, 0, 19), 11, 0));
        Left.add(H12,    new GridBagConstraints(1, 11, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(11, 9, 47, 19), 13, 0));
        Left.add(H11,    new GridBagConstraints(1, 10, 1, 1, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(11, 9, 0, 19), 10, 0));
        Left.add(bg,  new GridBagConstraints(0, 0, 2, 12, 0.0, 0.0
                ,GridBagConstraints.WEST, GridBagConstraints.NONE, new Insets(0, 0, 14, 0), 0, 0));
        jMenu4.add(jMenuItem19);
        jMenu6.add(jMenuItem7);
        jMenu6.add(jMenuItem8);
        jMenu7.add(jMenuItem16);
        jMenu7.add(jMenuItem21);
        repaint();
    }

    Hi,
    it took me some time to identify the relevant few lines from the hundreds you postedFile f = new File("help/helpset.hs");
    URL url = f.toURL();
    HelpSet hs = new HelpSet (null, url);
    HelpBroker hb = hs.createHelpBroker();
    new CSH.DisplayHelpFromSource(hb);Is this what you call when the action to display help is triggered? If yes then this is the problem because CSH.DisplayHelpFromSource does not do anything. It just returns an action listener. To use the actin listener returned by this method, it has to be attached to a GUI element such as a menu item or a button.
    If you have a menu item to display help contents from for instance, you can do the followingJMenuItem mi = new JMenuItem("Help Contents");
    mi.addActionListener(new CSH.DisplayHelpFromSource(someHelpBroker));With this the menu item will display help whenever it is selected.
    HTH
    Ulrich

  • Firefox 2.0.0.8 = security alert when calling a Java applet method

    I have a JavaHelp applet that I launch using a method that I called
    from JavaScript when a user clicks on a link.
    A problem I found with Firefox 2.0.0.8 and JRE 1.4 is that when I
    click on the link it will try to display a security alert window, but
    the window appears to freeze up when it is being displayed and hangs
    the browser. For example, I cannot see any of the buttons that should
    be on the security window. Rather the main window is empty. However,
    if my applet exposes a button that the user can directly click, the
    security window displays properly and can be dismissed.
    With the same JavaHelp applet, the link works fine if I use it Firefox
    2.0 and JRE 1.6 or JRE 1.5, and with IE 6.0 and IE 7.0. I uninstalled
    and reinstalled Firefox with JRE 1.4, and I couldn't reproduce the
    problem. However, I'm concerned that this problem may resurface in
    the future.
    Has anyone ever seem a similar problem? And if so, are there any easy
    workarounds?

    >
    I have a JavaHelp applet.. >I suggest you launch it using Java Web Start (JWS).
    Here is a test of a direct launch of the HelpButton JavaHelp applet.
    <http://www.physci.org/jh/test.html#launch>
    It would only take minor changes to the code to make the button entirely redundant, and have the code automatically launch the HelpViewer, once the user clicks the link to the JNLP launch file.
    That 'JavaHelp/JWS' page is my test page for launching JavaHelp in a variety of forms.

  • JavaHelp localizing

    Dear colleges,
    I am developing an online help system using java help version 1.1.3 and jdk 1.3.1_06.
    The user must be able to change the language for the help.
    I have tested my help on the germany platform of Windows 2000.
    By the creating of the HelpSet I have used Locale("en", "US") as parameter of the call
    findHelpSet(). But all texts and tooltip texts in the HelpBroker-Dialog are german.
    The call of the method HelpBroker.setLocale() doesn't help too.
    I have tryed to use three variants of the tag "xml:lang" in my file "help\en_US\HelpSet.hs":
    <helpset xml:lang="en" version="1.0">
    <helpset xml:lang="en-US" version="1.0">
    <helpset xml:lang="en" xml:country="US" version="1.0">
    But the help is always in german.
    The Method findHelpSet() needs probably the default locale and not the parameter Locale
    in its call.
    If I call Locale.setDefault(new Locale("en", "US")) before I call the method findHelpSet(),
    then almost label- and tooltip texts in the HelpBroker frame are english except the tooltip
    text for the property sheet "find" ( it will be titled "suche" - in german also). But all
    print dialogs calling from the HelpSet frame stay in german.
    Is this a bag in JavaHelp 1.1.3 ? What have I to do ?
    Thanks for you help in advance.
    Best regards,
    Valerius Kaiser,
    Heitec AG, Erlangen, Germany
    [email protected]

    I found this bug, but it seems to be related to the japanese locale:
    http://developer.java.sun.com/developer/bugParade/bugs/4478631.html
    Have you tried using 2.0 Beta to see if you can reproduce the error with that version as well?

  • JavaHelp ToolTipText

    Hello,
    In a multilingual application JavaHelp ToolTipTexts of the toolbar are always given in the language of the default locale. If I do a
        helpbroker.setLocale(variableLocale);
        System.out.println(helpbroker.getLocale()); // this is fine.
        System.out.println(HelpUtilities.getString(variableLocale,"tip.previous"));whatever the locale, the text is always the same.
    jdk 1.4.1
    Is this known?
    Regards
    J�rg

    Hello Jana,
    thank you for your response. I do have a ResourceBundle, but use it up till now only for setting the OptionPane and the FileChooser via the UIManager, e.g.
        UIManager.put("OptionPane.cancelButtonText", cancelText);
        UIManager.put("FileChooser.upFolderToolTipText",
                   myBundle.getString("upFolderTTT"));Unlike JavaHelp, JFileChooser and JOptionPane do not have a method "setLocale(...)" - so I thought the procedure would be different there.
    Off course, I can try again with the UIManager, but for JavaHelp I don't know where to find the corresponding key names. Do you have an idea?
    Bye
    Joerg

Maybe you are looking for

  • How to bind two Items?

    Hello, on my page I have 2 items:checkbox and text area. How to bind its work processes together? For example, when checkbox is checked then Text area is disable and when not then enable. Thanks' for help. Karina.

  • Fill in blank cells of a Pivot Table Value field area

    Hi, In this workbook (http://1drv.ms/1oHk0QV), a normal Pivot Table has been created on the "Pivot Table" worksheet.  I'd like the blank cells of the Pivot Table to be filled up with the preceding non blank value.  So to take an example of Product A,

  • Updraded to iTunes 8.0.1, lost 3/4 of my library

    I did the upgrade to iTunes 8.0.1, all went well, when I opened iTunes folowing the upgrade, most of my library was missing. This included both albums imported from CD's and also purchased music from iTunes itself. I tried a restore back to the origi

  • ABAP proxies in PI 7.0 to WebServices in PI 7.1

    Hi guys, I currently use ABAP proxies with my PI 7.0 and I was wondering if I could publish them as web services in my ESR if I upgrade to PI 7.1. Does anyone know ? Many thanks Best regards, GL

  • Garbage characters appearing in CHM Index pane

    Help! I have a CHM that has garbage characters appearing in the Index pane. It is only when accessing the 'p' section of the index. Here is a link to the screenshot so you can see what I mean: Garbage characters in Index pane of CHM screenshot I don'