Embedding JavaHelp in an app

I've been trying to use JavaHelp to display some information within an app, using the table of contents to navigate. I can get the HelpContent viewer to pop up, but haven't figured out how to embed the help system in my app, which is supposedly possible. Or maybe I'm not clear on what "embedding" java help means. What I want to do is have a page of a card layout contain a table of contents in the left split pane and the content displayed on the right. I've gone through their IDEDemo source but am still unable to get it to work. If anyone has successfully done this, I'd appreciate any hints.
Craig

Is what you're trying to do is not have the HelpContent viewer pop up
in a separate window, but instead have it appear within your app's
window? Is that what you mean by "embedding" ?
I don't know if that's possible; I suspect that if it is, you'll have
to extend various classes and possibly change the manner in which the
help system is invoked.
You might get a better response asking in the javahelp forum,
http://forum.java.sun.com/forum.jsp?forum=42

Similar Messages

  • "Embedding" JavaHelp in my app

    I've been trying to use JavaHelp to display some information within an app, using the table of contents to navigate. I can get the HelpContent viewer to pop up, but haven't figured out how to truly embed the help system in my app, which is supposedly possible. Or maybe I'm not clear on what "embedding" java help means. What I want to do is have a page of a card layout contain a table of contents in the left split pane and the content displayed on the right. In other words, have the content viewer display on a panel in my app rather than pop up in the normal dialog box. I've gone through their IDEDemo source but am still unable to get it to work the way I want. Maybe it would be necessary to use the JHelpContentViewer class as a model and rewrite it - but that would be a big job. If anyone has successfully done this, I'd appreciate any hints.
    Craig

    The IDEDemo of Sun JavaHelp isnot good, too complex.
    There is a very simple example to demostrate how to embed JavaHelp to app.
    may download it from: http://www.pivotonic.com/jawahelpauthor/HelloJavaHelp.zip

  • Want embedded Browser on my App by Project siena

    how can i add embedded Browser on my App by Project siena ?

    This version of Siena does not support an imbedded browser, however they are constantly updating Siena.   You can still use Launch, which will split the window:
    Launch(“http://www.bing.com”)
    -Bruton

  • Targeting a help page within JavaHelp from the app?

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

    And the answer is "absolutely"!

  • Can you have a DIAdem file embedded in a web app and then when you click the link to the DIAdem file it invokes DIAdem?

    Can you have a DIAdem file embedded in a web app and then when you click the link to the DIAdem file it invokes DIAdem?

    Hello JCN,
    I will keep in touch with the current Applications Engineer who will be assisting you with this issue and update the forum with the status of the problem. I personally think that your best option would be to create a link that opens DIAdem and then runs a script to load the data from a predetermined file (Rather than a link to the file itself).
    Ian M.
    National Instruments

  • Shut down Windows 8.1 embedded from within an app

    I am developing a windows 8.1 app with microsoft visual studio. The app shall run in an embedded box PC. From within this app I want to be able to completely shut down the computer. Is there some simple way of simulating or acessing windows/shut down function
    inside my app? If so, how could I write this in visual studio?

    This forum is for Windows POSReady. You might want to try the Mobile Development forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=windowsmobiledev
    Sean Liming - Book Author: Starter Guide SIM (WEI), Pro Guide to WE8S & WES 7, Pro Guide to POS for .NET - www.annabooks.com / www.seanliming.com

  • 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.

  • Distributing javahelp with an app

    Hi
    I have an application which uses JavaHelp and this works great on my development workstation. I wanted to distribute my app at this point and wondered if anyone could tell me what i'm missing to get the JavaHelp system working on another machine. I haven't packaged anything separately, it is all within one jar file (helpset.hs, map.jhm, toc.xml etc). When I try to run my app on any other machine so far, i get the error message:
    "java.lang.NoClassDefFoundError: javax/help/HelpBroker."
    What do I need to package with my app so that the target machine can run my app and the javahelp system? Do I need to package the jh.jar along with it?
    Please help.
    Thanks!

    never mind I solved it.

  • Embedded Web Browsers in Apps

    Has anyone else noticed that many apps, including those rated 12+ and below have embedded web browsers? For example in the"Kindle" app you can access an embedded web browser by highlighting a word while reading a book. It will bring up an option to visit Google or Wikipedia to further define a word, but of course once there you can potentially look up anything you want. There are many apps that have browsers hidden in the settings. Awesome Note has one like this.
    Whats the big deal? Web browsers in the app store are rated 17+ because you can potentially access "adult" material, but any 4+ app could contain a web browser with access to the same thing. For parents that are trying to protect their kids from inapropriate material this is a huge problem, as well as burdan to check every single app for one of these types of browsers.
    I realize it would be an equally difficult task for Apple to moniter these things, but couldn't they offer a way to keep these browsers from launching? For instance, they could possibly allow a user to choose only 1 browser that could access the internet. Or no browser at all. The ideal situation would be to allow a company like Net Nanny to moniter all the internet traffic on the devic, but Apple has of course locked down the ios.
    Is anyone else irate about this problem? Any solutions? If you are I would suggest you complain to Apple. It makes the Parental Controls on the device completely useless.

    Johnathan Burger wrote:
    If you don't want your kids to see-don't have the Internet.
    What a truly foolish comment!  The Internet has become a digital version of the world itself--just accelerated and sanitized of all social responsibility.  In many ways, our advanced technology has stripped away thousands of years of complex social accountability that we call morality.  But this is a little too philosophical for an Apple Support thread...
    To suggest that the way to avoid objectionable content on the Internet is to completely avoid the Internet is like saying the way to avoid getting injured in a car accident is to never drive (or travel as a passenger in any vehicle).  For better or for worse, the Internet is just as essential to modern life as the automobile.  To say we are wrong to demand effective parental controls is just as stupid as to reject seat belts and air bags.
    Apple needs to close this loophole.

  • D'oh! - Font not embedded in *live* iOS App.

    Hello everyone,
    Yay! Our first digital Magazine is live.
    L+L MAG App
    We have put a lot of work into it. Check it out
    But now I want to cry
    Because of this...
    What's wrong?
    The font (http://www.fontshop.com/fontlist/super_families/ff_din/) in one section of our app is not showing up correctly. On the menu in the 2nd screenshot you can (can't) see the arrows (Wingding Regular) turning into blocks.
    We could not reproduce these errors during our local tests and we just realized this after the app went live.
    What we have done
    Submitted and packaged the App from the same Mac on which we designed the magazine (inDesign)
    Tested the app multiple times locally on our iPads
    Please get in touch with me
    Oliver Ruehl

    Hi,
    Maybe I have to start from another angle with 2 questions:
    1) How are fonts actually processed when packaged into an app?
    We need to understand this for our inDesign production process for larger projects. What happens in detail?
    2) Is there some kind of limitation if a font is not licensed for use on the web etc.?
    We own all the rights to the fonts in our app, but are we missing something here in regards to the license?
    Are some fonts not integrated if they miss a license e.g. for web use?
    I'd be happy to hear from you soon
    Oliver

  • Can I upload a Captivate course to Connect AFTER embedding Edge animations through App Packager?

    I would like to include animations I've created in Edge Animate and the App Packager makes this pretty easy. However, afterward I have an HTML course that I can't seem to upload to Connect. When I ZIP it up I'm told by Connect that it's an invalid format. Also, when I export a Captivate course as a zipped HTML course, uploading it to Connect works, but the spinning loader shows indefinitely.

    So in case anyone comes across this post with the same question, I found out a way to sort of do this. I still couldn't figure out how to upload the ZIP to Connect properly, but I was able to use the Web Object Interaction and load up the HTML output of Edge Animate. It's just a folder with a bunch of files and an index file. All you do is choose the top-level folder, resize your interaction to fit, and everything works out well! No need to use the App Pakcager, and animations can be inserted any time while you're creating your project.

  • Using fonts embedded in the main app in Flash swf(s) loaded at runtime

    Hello there,
    My main application has several fonts embedded via CSS:
    @font-face {
    src: url('/Library/Fonts/ACaslonPro-Regular.otf');
    fontFamily: CaslonR;
    unicodeRange: U+0021-U+007E;
    At runtime the main application loads various swf files that were created in Flash CS5.
    I can't figure out how to allow those dynamically loaded external swf files to use the fonts that are already embedded in the main application.
    Of course I can embed the font in each swf in Flash CS5 to begin with, but that doesn't seem like an elegant solution, let alone it significantly increases the file size of every swf.
    Thanks,
    FTQuest

    See the embedded font post on my blog
    Alex Harui
    Flex SDK Team
    Adobe System, Inc.
    http://blogs.adobe.com/aharui

  • Which fonts are in the Adobe 'Font Folio Select' and can be embedded in software and apps for distri

    Hi,
    I need to select a few fonts for our client to choose from that can be legally embedded into their software for distribution.
    After reading this article:
    http://blogs.adobe.com/jlockman/2011/06/06/fonts-and-where-can-i-use-them/
    it sounds like there is an Adobe 'Font Folio Select' that contains fonts we can use but I can't find any information about where to get hold of it.
    I have spent hours hunting for fonts we can legally use and read lots of EULAs and still have no idea what fonts are available to developers!
    Any help would be greatly appreciated
    Thanks

    Thanks for reaching out to the Adobe Type Team.
    While the James Lockman blog you referred to is correct that our product, Font Folio Select, contains only fonts that we control and for which we can offer the broadest rights, it is mistaken in its description of how it is offered.  Font Folio Select is actually a collection of fonts which we offer for server usage - for customers who need fonts for automated printing services, or for web based services which offer a font selection.  I'm very sorry for the misinformation.
    Font licensing for applications is something for which we can provide you a direct quote.  If you would like to email me directly at the address listed below, I can get you in touch with a sales associate who can help you.  Additionally, if you provide me with a list of fonts you are interested in licensing, if there are fonts which are not ours, I can also provide you with foundry contact information so you can reach out to them directly.
    Caleb Belohlavek
    Principal Product Manager / Type
    Adobe Typekit
    [email protected]

  • Embedding pdf in mobile app

    Hi there,
    I have played around with creating an editable pdf and deploying to android devices. It would have to be a distributed pdf because i cannot guarantee signal.
    In isolation it works well. I am interested in taking it a step further and creating a mobile application which has some workflow before and after the PDF form i have created.....is this possible?
    Hope that makes sense

    What type of workfow are you thinking about? Most likely we do not support any type of workflow outside the FormsCentral workflow (which is : each filler fills up the an empty form and submit the data directly to the FormsCental response table).
    Gen

  • Problems with WLST embedded in java app.

    Hi,
    I have a problem with the WLST embedded in a java app.
    I want to programatically create or reconfigure a domain from a java application. Following is a simple example of what I want to do.
    import weblogic.management.scripting.utils.WLSTInterpreter;
    public class DomainTester {
      static WLSTInterpreter interpreter = new WLSTInterpreter();
      private void processDomain() {
        if(domainExists()) {
          System.out.println("Should now UPDATE the domain");
        } else {
          System.out.println("Should now CREATE the domain");
      private boolean domainExists() {
        try {
          interpreter.exec("readDomain('d:/myDomains/newDomain')");
          return true;
        }catch(Exception e) {
          return false;
    }The output of this should be one of two possibles.
    1. If the domain exists already it should output
    "Should now UPDATE the domain"
    2. If the domain does not exist it should output
    "Should now CREATE the domain"
    However, if the domain does not exist the output is always :
    Error: readDomain() failed. Do dumpStack() to see details.
    Should now UPDATE the domain
    It never returns false from the domainExists() method therefor always states that the exec() worked.
    It seams that the exec() method does not throw ANY exceptions from the WLST commands. The catch clause is never executed and the return value from domainExists() is always true.
    None of the VERY limited number of examples using embedded WLST in java has exception or error handling in so I need to know what is the policy to detect failures in a WLST command executed in java??? i.e. How does my java application know when a command succeeds or not??
    Regards
    Steve

    Hi,
    I did some creative wrapping for the WLSTInterpreter and I now have very good programatic access to the WLST python commands.
    I will put this on dev2dev somewhere and release it into the open source community.
    Don't know the best place to put it yet, so if anybody sees this and has any good ideas please feel free to pass them on.
    Here is the wrapper class. It can be used as a direct replacement for the weblogic WLSTInterpreter. As I can't overload the actual exec() calls because I want to return a String from this call I created an exec1(String command) that will return a String and throw my WLSTException which is a RuntimeException which you can handle if you like.
    It sets up stderr and stdout streams to interpret the results both from the Python interpreter level and at the JVM level where dumpStack() just seem to do a printStackTrace(). It also calls the dumpStack() command should the result contain this in its text. If either an exception is thrown from the lower level interpreter or dumpStack() is in the response I throw my WLSTException containing this information.
    package eu.medsea.WLST;
    import java.io.ByteArrayOutputStream;
    import java.io.PrintStream;
    import weblogic.management.scripting.utils.WLSTInterpreter;
    public class WLSTInterpreterWrapper extends WLSTInterpreter {
         // For interpreter stdErr and stdOut
         private ByteArrayOutputStream baosErr = new ByteArrayOutputStream();
         private ByteArrayOutputStream baosOut = new ByteArrayOutputStream();
         private PrintStream stdErr = new PrintStream(baosErr);
         private PrintStream stdOut = new PrintStream(baosOut);
         // For redirecting JVM stderr/stdout when calling dumpStack()
         static PrintStream errSaveStream = System.err;
         static PrintStream outSaveStream = System.out;
         public WLSTInterpreterWrapper() {
              setErr(stdErr);
              setOut(stdOut);
         // Wrapper function for the WLSTInterpreter.exec()
         // This will throw an Exception if a failure or exception occures in
         // The WLST command or if the response containes the dumpStack() command
         public String exec1(String command) {
              String output = null;
              try {
                   output = exec2(command);
              }catch(Exception e) {
                   try {
                        synchronized(this) {
                             stdErr.flush();
                             baosErr.reset();
                             e.printStackTrace(stdErr);
                             output = baosErr.toString();
                             baosErr.reset();
                   }catch(Exception ex) {
                        output = null;
                   if(output == null) {
                        throw new WLSTException(e);
                   if(!output.contains(" dumpStack() ")) {
                        // A real exception any way
                        throw new WLSTException(output);
              if (output.length() != 0) {
                   if(output.contains(" dumpStack() ")) {
                        // redirect the JVM stderr for the durration of this next call
                        synchronized(this) {
                             System.setErr(stdErr);
                             System.setOut(stdOut);
                             String _return = exec2("dumpStack()");
                             System.setErr(errSaveStream);
                             System.setOut(outSaveStream);
                             throw new WLSTException(_return);
              return stripCRLF(output);
         private String exec2(String command) {
              // Call down to the interpreter exec method
              exec(command);
              String err = baosErr.toString();
              String out = baosOut.toString();
              if(err.length() == 0 && out.length() == 0) {
                   return "";
              baosErr.reset();
              baosOut.reset();
              StringBuffer buf = new StringBuffer("");
              if (err.length() != 0) {
                   buf.append(err);
              if (out.length() != 0) {
                   buf.append(out);
              return buf.toString();
         // Utility to remove the end of line sequences from the result if any.
         // Many of the response are terminated with either \r or \n or both and
         // some responses can contain more than one of them i.e. \n\r\n
         private String stripCRLF(String line) {
              if(line == null || line.length() == 0) {
                   return line;
              int offset = line.length();          
              while(true && offset > 0) {
                   char c = line.charAt(offset-1);
                   // Check other EOL terminators here
                   if(c == '\r' || c == '\n') {
                        offset--;
                   } else {
                        break;
              return line.substring(0, offset);
    }Next here is the WLSTException class
    package eu.medsea.WLST;
    public class WLSTException extends RuntimeException {
         private static final long serialVersionUID = 1102103857178387601L;
         public WLSTException() {
              super();
         public WLSTException(String message) {
              super(message);
         public WLSTException(Throwable t) {
              super(t);
         public WLSTException(String s, Throwable t) {
              super(s, t);
    }And here is the start of a wrapper class for so that you can use the WLST commands directly. I will flesh this out later with proper var arg capabilities as well as create a whole Exception hierarchy that better suites the calls.
    package eu.medsea.WLST;
    // Provides methods for the WLSTInterpreter
    // just to make life a little easier.
    // Also provides access to the more generic exec(...) call
    public class WLSTCommands {
         public void cd(String path) {
              exec("cd('" + path + "')");
         public void edit() {
              exec("edit()");
         public void startEdit() {
              exec("startEdit()");
         public void save() {
              exec("save()");
         public void activate() {
              exec("activate(block='true')");
         public void updateDomain() {
              exec("updateDomain()");
         public String state(String serverName) {
              return exec("state('" + serverName + "')");
         public String ls(String dir) {
              return exec("ls('" + dir + "')");
         // The generic wrapper for the interpreter exec() call
         public String exec(String command) {
              return interpreter.exec1(command);
         private WLSTInterpreterWrapper interpreter = new WLSTInterpreterWrapper();
    }Lastly here is some example code using these classes:
    its using both the exec(...) and cd(...) wrapper commands from the WLSTCommand.class shown above.
        String machineName = ...; // get name from somewhere
        try {
         exec("machine=create('" + machineName + "','Machine')");
         cd("/Machines/" + machineName + "/NodeManager/" + machineName);
         exec("set('ListenAddress','10.42.60.232')");
         exec("set('ListenPort', 5557)");
        }catch(WLSTException e) {
            // Possibly the machine object already exists so
            // lets just try to look it up.
         exec("machine=lookup('" + machineName + "','Machine')");
    ...After this call a machine object is setup that can be allocated later like so:
         exec("set('Machine',machine)");Regards
    Steve

Maybe you are looking for

  • Questions on wiping and Backup

    I have a user who needs to wipe their BB.  I want them to use Desktop Manager to backup everything. Will the it backup even photos they have on the unit?

  • Transfer of SC into PO in Extended classic scenario

    Hi Can anybody provide me with the ABAP call stack ( I mean the program logic) on how the SC is converted to PO and transferred to the R/3 system in the case of extended classic scenario. I know that the SC after the approval process is over a method

  • Hp envy7000 and monitors

    How  do yo get a HP ENVY 7000  to display on a DEL monitor. Z  .                                              vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

  • Psc 1315 printer error message

    After printing one document, on the next one the printer slowed considerably. Since then the Check Printer light is blinking and I was getting an error message (no longer getting message, light is blinking and it just won't print).  The cartridge had

  • Table Data delete not working

    Hi, I m trying to simply delete all records in a Z table. I insert data into this table from another program. Until 1/2 hr ago both insertions and deletions were working fine. But now suddently the delete program is hanging on statement DELETE FROM S