Package javax.help

Examples of javax.help.JHelp$AccessibleJHelp


        // TODO: use the "topic" argument to pick an initial page
        try {
            URL url = HelpSet.findHelpSet(null, "LightZone.hs");
            HelpSet help = new HelpSet(null, url);
            String title = help.getTitle();
            JHelp jhelp = new JHelp(help);
            help.setHomeID("index");
            try {
                jhelp.setCurrentID(topic);
            }
            catch (Throwable t) {
                jhelp.setCurrentID("index");
            }
            JFrame frame = new JFrame();
            frame.setTitle(title);
            frame.setContentPane(jhelp);
            frame.pack();
View Full Code Here


        if (helpFrame == null) {
            helpFrame = new JFrame();
            helpFrame.getGlassPane().setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
            try {
                HelpSet helpSet = new HelpSet(null, helpSetPath.getURL());
                JHelp jhelp = new JHelp(helpSet);
                helpFrame = new JFrame("Help - " + getApplicationName());
                helpFrame.getContentPane().add(jhelp);
                helpFrame.setIconImage(getApplicationImage());
                helpFrame.pack();
            }
View Full Code Here

        // use resource anchor trick to reference helpset
        ClassLoader cl = HelpSetResourceAnchor.class.getClassLoader();
        URL url = cl.getResource( "POC.hs" );
        _helpset = new HelpSet( cl, url );

        _browser = new JHelp( _helpset );
        _browser.setNavigatorDisplayed(true);

        getContentPane().setLayout(new GridLayout());
        getContentPane().add( _browser);
View Full Code Here

        // use resource anchor trick to reference helpset
        ClassLoader cl = HelpSetResourceAnchor.class.getClassLoader();
        URL url = cl.getResource( "POC.hs" );
        _helpset = new HelpSet( cl, url );

        _browser = new JHelp( _helpset );
        _browser.setNavigatorDisplayed(true);

        getContentPane().setLayout(new GridLayout());
        getContentPane().add( _browser);
View Full Code Here

        // use resource anchor trick to reference helpset
        ClassLoader cl = HelpSetResourceAnchor.class.getClassLoader();
        URL url = cl.getResource( "POC.hs" );
        _helpset = new HelpSet( cl, url );

        _browser = new JHelp( _helpset );
        _browser.setNavigatorDisplayed(true);

        getContentPane().setLayout(new GridLayout());
        getContentPane().add( _browser);
View Full Code Here

    {
          component.setCursor(new Cursor(Cursor.DEFAULT_CURSOR));
          throw new Exception("HelpSet not found "+this.getClass().getName());
    }

    JHelp help = new JHelp(set);
    JFrame f = new JFrame();
    f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
    f.setContentPane(help);
    f.pack();
    f.setLocationRelativeTo(component);
View Full Code Here

                            getFromLocale("helpNotFoundError"));
                    return;
                }
                helpSetUrl = helpUrl;
                helpSet = new HelpSet(null, hsURL);
                helpComponent = new JHelp(helpSet);
                if (helpFrame == null) {
                    helpFrame = new LFrame();
                    helpFrame.setTitle(getFromLocale("helpWindowTitle"));
                    helpFrame.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);
                    helpFrame.getContentPane().add(helpComponent);
View Full Code Here

  public HelpWindow(ResourceBundle bundle){
    PropertyConfigurator.configure(ClassLoader.getSystemResource("be/xtnd/commons/log4j.properties"));
    try
      ClassLoader cl = HelpWindow.class.getClassLoader()
      URL url = HelpSet.findHelpSet(cl, bundle.getString("appli.help_file"))
      helpViewer = new JHelp(new HelpSet(cl, url))

      EscapeInternalFrame frame = new EscapeInternalFrame();
      Object[] args = {bundle.getString("appli.name")};
      frame.setTitle(CommonsI18n.tr("{0} Help", args));
View Full Code Here

TOP

Related Classes of javax.help.JHelp$AccessibleJHelp

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.