JavaHelp package

Hello all,
I am trying to add the JavaHelp System to my Application for the first time and I am little bit confused. I downloaded latest release of JavaHelp and I added sources (src.jar) to my Classpath, but classes like com.sun.java.help.impl.Parser
com.sun.java.help.impl.ParserListener
com.sun.java.help.impl.ParserEvent
and some more...
were not there.... My question is : Where are they? Where to find them?????
Thank you all for reply.
Best Regards.

HI
Actually you don't need to inculde src.zip contents to your classpath and to compile them. You can add FOLDERTHAT_CONTAINS_SRC_ZIP_/javahelp/lib/jhall.jar to your classpath. This jar contains already compiled JavaHelp System classes. Have fun

Similar Messages

  • Need JavaHelp Solaris package to go with JDK 1.5 installation

    [Sorry - I had posted this in another forum before finding this forum...  Hope someone here can help...  Thanks!]
    Hi,
    I've installed the JRE component of JDK 1.5.0_20 on a Solaris 9 SPARC system, but it looks like that broke SMC. I think I found a solution here:
    http://forums-beta.sun.com/thread.jspa?threadID=559144&tstart=105
    but the problem is that I cannot find the JavaHelp package that is correct for JDK 1.5.
    Apparently the older tar.Z was on some CDs previously, but I downloaded the JavaHelp 2.0.5 tar.Z, but when I try to pkgadd the SUNWjhrt package from that, it says that it has a prerequisite of "JS2E 1.6 Runtime" (whereas I've installed J2SE 1.5).
    I've searched various places, but I cannot find a tar.Z with the correct JavaHelp packages.
    Does anyone know where I might be able to download that?
    Thanks,
    Jim

    Hi,
    I think that I was able to figure out what to do. When I did the pkgadd for SUNWjhrt, I just responded "y" to the warning about 1.6, and that pkgadd and the other 3 pkgadds seemed to work ok.
    Jim

  • Javahelp and indexer

    Hi java coders,
    I'm trying to apply search system to my application that uses JavaHelp. My probleme is that I don't know how to use indexer. Can someone help me ?? plz ! (some lines of code ?)
    MSasha.

    Hi,
    you can try this
      import com.sun.java.help.search.*;
      public void createSearchDb(String[] args) {
          Indexer ixr = new Indexer();
          ixr.main(getIndexerArguments(args);
      }args is an array of Strings having the arguments usually typed when calling jhindexer through the command line (see jhug.pdf in the JavaHelp package). Every argument must be in its own string, i.e. "-db" is one String and "C:\myDirectory\JavaHelpSearch" is the next String, and so on
    Ulrich

  • JavaHelp Viewer accessing networked help data

    I've seen document talking about this possibility but I can't find a good example that explain hot to do it. Is there anybody who is capable to load the html pages that are located in a server?
    What is the general approach for this solution?
    Diego

    Hi Diego,
    Is there anybody who is capable to
    load the html pages that are located
    in a server?I am, see http://www.lightdev.com/page/102.htm
    I've seen document talking about this possibility The JavaHelp Users Guide explains, how to do it. It is included in the JavaHelp downloadable.
    but I can't find a good example that explain hot to do it.The JavaHelp package includes a sample that does it (including client side JavaScript etc.).
    HTH
    Ulrich

  • 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");

  • How to start to work on JavaHelp

    I have no clue on how to use the javahelp.
    May i know where do I start and how to add the html pages? Thanks.

    Hi,
    if you downloaded the JavaHelp package at http://www.java.sun.com/products/javahelp you should have a JavaHelp and a PDF version of the Java Help Users Guide (jhug). This is a good start point to learn more about JavaHelp. In fact, jhug has all information about the technology whatsoever.
    Chapters 'Authoring Help Information' and 'Setting up a JavaHelp System' of jhug would answer your questions below.
    If you plan to author JavaHelp without learning about or doing much of the technical work, application HelpExpert at http://www.calcom.de/eng/product/hlpex.htm does almost all of the technical stuff and lets you concentrate on authoring the content.
    Hope that helps
    Ulrich

  • Installing Solaris Management Console

    I'm trying to get Solaris Management Console working on my Solaris 9 host. I've installed all the SMC packages:
    SUNWmc
    SUNWmcc
    SUNWmccom
    SUNWmcdev
    SUNWmcex
    SUNWwbmc
    Unfortunately, I found out that Solaris Management Console also requires a SUNWCprog cluster install (Developer install) and this host was built last year with the SUNWCuser (End user) install.
    Does anybody know what additional pkgs I need to install to get Solaris Management Console to work? I don't have the option of rebuilding the machine and I don't want to install every single pkg in the developer install. It's a waste of space.

    I've resolved this issue. On Solaris 9 x86, the default Java installation resides in /usr/j2se. The JavaHelp packages required by SMC install their files to this directory. The Java 5.0 SE installation instructions advise you to redirect the /usr/j2se link to /usr/jdk/jdk1.5.0 if you want Java 5.0 to be your default Java installation. If you do this, you will lose the JavaHelp files and SMC will break.
    I resolved this issue by:
    1) removing the JavaHelp packages (SUNWjhdem, SUNWjhdev, SUNWjhdoc, SUNWjhrt)
    2) deleting the /usr/j2se directory
    3) linking /usr/j2se to /usr/jdk/jdk1.50
    4) reinstalling the JavaHelp packages (available on disc 2 of the installation set)
    SMC now starts and runs normally. It uses the new Ocean laf which I think is much more attractive than Metal. Good work, Sun!
    Chris

  • SMC and J2SE 1.5

    I'm running Solaris 9 x86 09/04. The only patch I've applied is:
    112786-32 X11 6.6.1_x86: Xsun patch
    as recommended by the J2SE 1.5 release notes. After installing J2SE 1.5, the Solaris Management Console is broken. If I try to start it from the command line, it bombs with:
    com.sun.management.viper.CriticalStopException: javax/help/JHelp
    at com.sun.management.viperimpl.console.gui.SMCConsole.start(SM CConsole.java:276)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManag er.openConsole(BaseConsoleOptionsManager.java:752)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManag er.redirectToConsole(BaseConsoleOptionsManager.java:621)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManag er.launchConsole(BaseConsoleOptionsManager.java:167)
    at com.sun.management.viperimpl.console.BaseConsoleOptionsManag er.main(BaseConsoleOptionsManager.java:834)
    Any ideas?
    Thanks,
    Chris Radlinski

    I've resolved this issue. On Solaris 9 x86, the default Java installation resides in /usr/j2se. The JavaHelp packages required by SMC install their files to this directory. The Java 5.0 SE installation instructions advise you to redirect the /usr/j2se link to /usr/jdk/jdk1.5.0 if you want Java 5.0 to be your default Java installation. If you do this, you will lose the JavaHelp files and SMC will break.
    I resolved this issue by:
    1) removing the JavaHelp packages (SUNWjhdem, SUNWjhdev, SUNWjhdoc, SUNWjhrt)
    2) deleting the /usr/j2se directory
    3) linking /usr/j2se to /usr/jdk/jdk1.50
    4) reinstalling the JavaHelp packages (available on disc 2 of the installation set)
    SMC now starts and runs normally. It uses the new Ocean laf which I think is much more attractive than Metal. Good work, Sun!
    Chris

  • Missing word database in my Dictionary

    I have a Nokia 6121 classic. Recently my memory card was corrupted, so I had to reformat the memory card. After reformatting the memory card, the application Dictionary coudn't work. It stated: "Dictionary word information missing. Install word database". Is there a solution to reinstall my word database?

    Hi Mathieu,
    I would like to know where
    you try classe Indexer() ?you find class Indexer in package com.sun.java.help.search, i.e. it is part of the JavaHelp package and can be imported with import com.sun.java.help.search.*;> have you try to exclude words ?
    no, but it can be done in the same way. Creation of a search database is invoked by the method call Indexer ixr = new Indexer();
    ixr.main(args); where args is a String[] with arguments that can be used as documented in the JavaHelp User's Guide. One argument to the call can be a configuration file (and my code as shown at the link from my previous post already creates such a config file). In the config file a list of stopwords can be included too.
    Ulrich

  • Error in JavaHelp

    Hello:
    I have JWS app I've been working on for a long time. I just added JavaHelp to it. I got it all working nicely on my local machine. When I went to deploy in JWS, I ran into a permission problem. JavaHelp is included as an extension, and I've set <security> to <all-permissions/> in both JNLPs, but I still get the following exception:
    Parsing failed for null
    Exception caught while parsing nulljava.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
    java.lang.NullPointerException
      at javax.help.plaf.basic.BasicFavoritesNavigatorUI.reloadData(BasicFavoritesNavigatorUI.java:297)
      at javax.help.plaf.basic.BasicFavoritesNavigatorUI.installUI(BasicFavoritesNavigatorUI.java:235)
      at javax.swing.JComponent.setUI(JComponent.java:647)
      at javax.help.JHelpNavigator.setUI(JHelpNavigator.java:257)
      at javax.help.JHelpNavigator.updateUI(JHelpNavigator.java:276)
      at javax.help.JHelpNavigator.<init>(JHelpNavigator.java:105)
      at javax.help.JHelpFavoritesNavigator.<init>(JHelpFavoritesNavigator.java:62)
         ... more omitted
    Here are my JNLP files:
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://www.mydomain.com/"
    href="mydomain.jnlp"
    version="0.14">
      <information>
        <title>My Client</title>
        <vendor>MyCompany, LLC</vendor>
        <description>MyCompany rules.</description>
        <homepage href="http://mydomain.com"/>
        <offline-allowed/>
      </information>
      <resources>
        <jar href="mydomain.jar"/>
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
        <extension name="Java Help" href="lib/javahelp.jnlp"/>
      </resources>
      <application-desc main-class="com.mydomain.core.Main"/>
      <security>
        <all-permissions/>
      </security>
    </jnlp>
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://www.digibunker.com/"
    href="lib/javahelp.jnlp"
    version="2.0">
      <information>
        <title>Java Help</title>
        <vendor>Sun Microsystems</vendor>
        <description>Java Help System.</description>
        <homepage href="http://java.sun.com/javase/technologies/desktop/javahelp"/>
        <offline-allowed/>
      </information>
      <resources>
        <jar href="lib/jh.jar" download="lazy" part="JavaHelp" />
        <jar href="lib/jhall.jar" download="lazy" part="JavaHelp" />
        <jar href="lib/jhbasic.jar" download="lazy" part="JavaHelp" />
        <jar href="lib/jsearch.jar" download="lazy" part="JavaHelp" />
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
      </resources>
      <component-desc>
      <security>
        <all-permissions/>
      </security>
    </jnlp>
    Any and all help welcomed.
    Thanks, Dan
    Edited by: dlamet on Jan 8, 2010 5:40 PM

    AndrewThompson64
    Thanks for the quick response. I downloaded your app (very good idea BTW!) and ran it against my JNLP file. It reported a number of issues to me, but I don't understand them. I subsequently located the JNLP spec 6.0.10 here and went through it carefully. (I ended up discovering some nice features I added to my file.) I ended up with the following file, but the errors seem to be the same. The output is below the JNLP.
    Is it possible that your app is analyzing against an outdated version of the JNLP spec? It's all that I can figure. Perhaps you could explain just one or two of the node errors to get me started. Thanks again! Dan
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp spec="1.0+"
    codebase="http://www.digibunker.com/"
    href="digibunker.jnlp"
    version="0.14">
      <information>
        <title>DigiBunker Client</title>
        <vendor>DigiBunker, LLC</vendor>
        <homepage href="http://www.digibunker.com"/>
        <description kind="tooltip">Automated media back up.</description>
        <description kind="one-line">The DigiBunker client makes protecting your media files easy.</description>
        <icon href="http://www.digibunker.com/images/icon-32.png"
    version="1.0"
    width="32"
    height="32"
    size="6243" />
        <offline-allowed/>
        <shortcut>
          <desktop />
          <menu />
        </shortcut>
      </information>
      <security>
        <all-permissions/>
      </security>
      <resources>
        <j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se"/>
        <jar href="digibunker.jar" main="true" />
        <extension name="Java Help" version="2.0" href="lib/javahelp.jnlp">
          <ext-download download="lazy" />
        </extension>
      </resources>
      <application-desc main-class="com.judedavid.eros.core.Main"/>
    </jnlp>
    Content type application/xml does not equal expected type of application/x-java-jnlp-file
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'homepage'. One of '{description, icon, offline-allowed, shortcut, association, related-content}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.a: Invalid content was found starting with element 'j2se'. One of '{jar, nativelib, extension, property, package}' is expected.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    cvc-complex-type.2.4.d: Invalid content was found starting with element 'security'. No child element is expected at this point.
    XML encoding not known, but declared as utf-8
    Codebase + href 'http://www.digibunker.com/digibunker.jnlp' is not equal to actual location of 'file:/Y:/Moonlighting/JudeDavid/site/athena/public/digibunker.jnlp'.
    Downloads can be optimized by specifying a resource size for 'digibunker.jar'.
    The resource download at digibunker.jar can be optimized by removing the (default) value of download='eager'.
    The resource download at digibunker.jar can be optimized by removing the (default) value of main='false'.
    It might be possible to optimize the start-up of the app. by specifying download='lazy' for the digibunker.jar resource.
    Lazy downloads might not work as expected for digibunker.jar unless the download 'part' is specified.
    Resource type com of resource http://digibunker.com is not one of the allowable types of jar.
    Report for http://www.digibunker.com/lib/javahelp.jnlp

  • HelpSet works but not when packaged in JAR

    I have been using the JavaHelp and it all works perfectly if I just compile and run it from Eclpise, but when I try packaging everything into a JAR it doesn't work. Can anyone help me please?
    public void loadHelpSet()
    InfoMsg.postError("loading help") ;
    try
    // Get the classloader of this class.
    ClassLoader cl = this.getClass().getClassLoader() ;
    URL url = HelpSet.findHelpSet(cl, "Irs") ;
    irsHS = new HelpSet(cl, url) ;
    HelpBroker hb = irsHS.createHelpBroker() ;
    hb.setDisplayed(true) ;
    catch (Exception e)
    InfoMsg.postError("Unable to load Help Set") ;
    } // end loadHelpSet
    it doesn't appear to get past the line irsHS = new HelpSet(cl, url) when run from the JAr, but it doesn't appear to throw an error either as no message box is shown (as it would if it couldn't find the helpset under normal circumstances when run from Eclipse)

    I tried that approach but it doesn't work either. I think maybe my directory structure is wrong.
    C:\IRS\IRS.jar
    C:\IRS\irs.hs
    referenced: jar:file://C:/IRS/IRS.jar!/irs.hs
    Am I doing this right?

  • Problem with my own packages...

    Hello, everyone!
    I wrote a program called "AwfulXMLEditor" with the JBuilder, and with
    the JBuilder the program ran just fine. Then I wanted to make a neat
    package out of it, but I was told that the JBuilder's Personal Edition
    doesn't support the creation of jar-Files. So I thought, I'd transfer
    the classes somewhere else and package them with the normal Java SDK.
    But suddenly the SDK seems to be unable to find classes that are in
    the same package, except when I explicitly name the classpath while
    calling javac. And if I do that, and try to run the compiled program,
    java chokes on it.
    Here's what happened exactly:
    * Operating System: SuSE Linux
    * Java version: SunJava2-1.4.01
    * My Classpath: CLASSPATH= /usr/lib/SunJava2-1.4.01/bin:
    /usr/lib/SunJava2-1.4.01/jre/bin:/home/daniela/java:
    /usr/lib/SunJava2-1.3.1/jh1.1.3/javahelp/lib/jh.jar
    (I wrote the classpath as an export-statement into the
    .profile file in my home directory. Is that the right
    place for it?)
    The project consists out of these files
    * /home/daniela/java/dkbtools/axe/AwfulXMLEditor.java
    * /home/daniela/java/dkbtools/axe/FindReplaceDialog.java
    * /home/daniela/java/dkbtools/axe/dtdFileFilter.java
    * /home/daniela/java/dkbtools/axe/CopyListener.java
    * /home/daniela/java/dkbtools/axe/MessagePanel.java
    * /home/daniela/java/dkbtools/axe/xmlFileFilter.java
    * /home/daniela/java/dkbtools/axe/EditorPaneTab.java
    * /home/daniela/java/dkbtools/axe/TextAreaTab.java
    * /home/daniela/java/dkbtools/axe/xslFileFilter.java
    Every single one of those starts with:
    _____package dkbtools.axe;
    When I try to compile:
    _____~/java/dkbtools/axe> javac AwfulXMLEditor.java
    I get 23 errors like
    _____AwfulXMLEditor.java:201: cannot resolve symbol
    _____symbol : class xslFileFilter
    _____location: class dkbtools.axe.AwfulXMLEditor
    _____xslFileFilter xslFF = new xslFileFilter();
    _________________________^
    with xslFileFilter being one of the files in the package.
    If I compile with a -classpath option:
    _____~/java/dkbtools/axe> javac -classpath /home/daniela/java/
    _____AwfulXMLEditor.java
    it compiles completely without messages.
    When I try to start the program
    _____~/java/dkbtools/axe> java AwfulXMLEditor
    I get the following:
    _____Exception in thread "main" java.lang.NoClassDefFoundError:
    _____AwfulXMLEditor (wrong name: dkbtools/axe/AwfulXMLEditor)
    _____at java.lang.ClassLoader.defineClass0(Native Method)
    _____at java.lang.ClassLoader.defineClass(ClassLoader.java:509)
    _____at java.security.SecureClassLoader.defineClass
    ________(SecureClassLoader.java:123)
    _____at java.net.URLClassLoader.defineClass
    ________(URLClassLoader.java:246)
    _____at java.net.URLClassLoader.access$100(URLClassLoader.java:54)
    _____at java.net.URLClassLoader$1.run(URLClassLoader.java:193)
    _____at java.security.AccessController.doPrivileged(Native Method)
    _____at java.net.URLClassLoader.findClass(URLClassLoader.java:186)
    _____at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
    _____at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265)
    _____at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
    _____at java.lang.ClassLoader.loadClassInternal
    _____(ClassLoader.java:322)
    If I mention the classpath:
    _____java -classpath /home/daniela/java/ AwfulXMLEditor
    he says:
    _____Exception in thread "main" java.lang.NoClassDefFoundError:
    _____AwfulXMLEditor
    BTW, classes that are not part of a package compile and run just
    fine... Which is one of the reasons why I am completely puzzled about
    this problem?
    Has somebody ever encountered a similar problem? Am I trying
    to compile from the wrong directory? Is my classpath faulty?
    Or is this just something stupid I overlooked (last time I was this desperate, everything was because of a missing "close();")?
    I'd be really grateful for your help!
    Daniela KB

    If you dont mind me asking, if its for a good cause
    then why call it aweful-XMLeditor??Well, I liked the acronym "AXE". Besides, with my limited programming experience the code is bound to be pretty inelegant. But it is basically a work in progress and maybe one day the users will decide that AXE stands for "Awesome XML Editor".
    Just in case anyone is interested: I will post the -- still awful -- first version on my website in a couple of days:
    www.ling.uni-potsdam.de/~berger/downloads.html
    I hope I will be done with the clean-up and the documentation (don't we just love javadoc?) until the weekend.
    Daniela

  • 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);
    }

  • JavaHelp ... help

    Hi, I was wondering how do I integrate javahelp into my current jdk (I am using 1.4.2). I've set the environment variable JHHOME so what's next..?
    I am also using Netbeans 4.0. I want to integrate javahelp into netbeans too. I've done the following:
    Tools => Java Platform Manager
    I've chosen my current java platform and under tab "Sources" I clicked button "Add JAR/Folder" and selected the src.jar to import. A weird thing is that netbeans actually sees javaHelp but does not recognise it. Specifically when I pause typing after having typed javax. the help package appears in the list. However compiler says that package javax.help.* does not exist and project won't compile.
    Any ideas?
    Thnx in advance

    Hi,
    Did you solve this problem, im using NetBeans 5.0 and im having the exact same problem, and its driving me up the wall...
    Cheers

  • Javahelp problem!!!

    Hello! I have a big problem while trying to load the help in the application! I use javahelp 2.0 I imported the javax.help and i am trying to load the help. I run the Help Set file with hsviewer.jar from javahelp and load the help fine. I want to load it from a button called help:
    HelpSet hs;
    HelpBroker hb;
    private void help_actionPerformed(ActionEvent e)
              String helpHS = "Help/BookStore.hs"; // path to the helpset file
              ClassLoader cl = Login.class.getClassLoader();
              try
                   URL hsURL = HelpSet.findHelpSet(cl, helpHS);
                   hs = new HelpSet(null,hsURL);
              catch (Exception ex)
                   ex.printStackTrace();
                   return;
              hb = hs.createHelpBroker();
              new CSH.DisplayHelpFromSource(hb);
         }when i run i throws an exception :
    javax.help.HelpSetException: Could not parse
    Got an IOException (null)
    Parsing failed for null
    Have you any ideea whar its wrong???

    I found the solution!!! :)
    private void help_actionPerformed(ActionEvent e)
              String helpHS = "../bin/main/Help/BookStore.hs"; // my new path
              ClassLoader cL = Login.class.getClassLoader();
              try
                   URL hsURL = HelpSet.findHelpSet(cL, helpHS);
                   hs = new HelpSet(null,hsURL);
              catch (Exception ex)
                   ex.printStackTrace();
                   return;
              hb = hs.createHelpBroker();
              new CSH.DisplayHelpFromSource(hb);
              hb.setDisplayed(true);
         }It trows that exception because it didn`t find the helpSet file. I moved the Help folder source to the bin/main/Help, where main is the package name and bin are the .class files.
    Cheers!

Maybe you are looking for

  • Open letter to Crative Labs regarding lack of support for soft subtit

    Dear Creative Labs I'm a proud owner of a Creative Zen Vision W. In this day and age you either have to be a millionaire or truly love videos to buy one; I belong to the secound group. We need support for soft subtitles in Creative Zen Vision, Vision

  • I do not want the Firefox update page to load. I want only the Home page to load.

    When i first access the internet through Firefox, I get both the Firefox update page and my requested Home page. I am unable to only get the Homepage even though this is the setting in my control panel. Basically i am getting two tabs at startup and

  • Night Shift Premium

    Hello Experts, I have a requirement of generating Night Shift Premium Hours. My Night Shift is from 18:30 to 6:30. Where as Hours needs to consider for Night Premium is only between 21:00 to 5:00. We are having Positive Time scenerio & Clock in/out i

  • ISE Guest Accounting Identity

    Hello Guys, i have an ISE 1.2 with Patch 9 installed. Now i want to have a correlated View of Guest User Name <-> IP Address When i go under Operations -> Reports -> Guest Accouting i just get the MAC Adress as Identity Value. Is there any configurat

  • Mimicing ip addresses to the server

    I'm trying to set the user agent property to other than Java/1.4.2_02, and also mimic different ip addresses. In another words i am trying that I could send the request with variety of different setting of user-agent and ip address. I have this piece