Examples of enableHelpKey()


Examples of javax.help.HelpBroker.enableHelpKey()

        HelpSet hs;
        HelpBroker hb;
        try {
            hs = new HelpSet(loader, helpURL);
            hb = hs.createHelpBroker();
            hb.enableHelpKey(frame.getRootPane(), "Frame", hs);
            frame.getRootPane().putClientProperty("qq_HelpSet", hs);
            frame.getRootPane().putClientProperty("qq_HelpBroker", hb);
        }
        catch (Exception ex) {
            if (ex instanceof HelpSetException){
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

        HelpSet hs;
        HelpBroker hb;
        try {
            hs = new HelpSet(loader, helpURL);
            hb = hs.createHelpBroker();
            hb.enableHelpKey(frame.getRootPane(), "Frame", hs);
            frame.getRootPane().putClientProperty("qq_HelpSet", hs);
            frame.getRootPane().putClientProperty("qq_HelpBroker", hb);
        }
        catch (Exception ex) {
            if (ex instanceof HelpSetException){
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

        HelpSet hs;
        HelpBroker hb;
        try {
            hs = new HelpSet(loader, helpURL);
            hb = hs.createHelpBroker();
            hb.enableHelpKey(frame.getRootPane(), "Frame", hs);
            frame.getRootPane().putClientProperty("qq_HelpSet", hs);
            frame.getRootPane().putClientProperty("qq_HelpBroker", hb);
        }
        catch (Exception ex) {
            if (ex instanceof HelpSetException){
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

            URL url = getClass().getResource("/help/jhelpset.hs");
            if (url == null) throw new NullPointerException("The help set could not be found");
            HelpSet helpSet = new HelpSet(null, url);
            HelpBroker helpBroker = helpSet.createHelpBroker();
            contentsMenuItem.addActionListener(new CSH.DisplayHelpFromSource(helpBroker));
            helpBroker.enableHelpKey(getRootPane(), "about", helpSet);        // for F1
        } catch (Throwable e) {
            final String[] message;
            if (e instanceof NullPointerException) {
                message = new String[] { "Help set not found" };
            } else if (e instanceof NoClassDefFoundError) {
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

            URL url = getClass().getResource("/help/jhelpset.hs");
            if (url == null) throw new NullPointerException("The help set could not be found");
            HelpSet helpSet = new HelpSet(null, url);
            HelpBroker helpBroker = helpSet.createHelpBroker();
            contentsMenuItem.addActionListener(new CSH.DisplayHelpFromSource(helpBroker));
            helpBroker.enableHelpKey(getRootPane(), "about", helpSet);        // for F1
        } catch (Throwable e) {
            final String[] message;
            if (e instanceof NullPointerException) {
                message = new String[] { "Help set not found" };
            } else if (e instanceof NoClassDefFoundError) {
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

            final String stringID = "Ajuda.NormesBut";
            // Fem que l'objecte jmiAjuda dispari l'ajuda
            helpBroker.enableHelpOnButton(jmiAjuda, stringID, helpSet);
            // Per obrir l'ajuda amb la tecla de funcio F1
            JRootPane jRootPane = this.getRootPane();
            helpBroker.enableHelpKey(jRootPane, stringID, helpSet);
        } catch (Exception ee) {
            JOptionPane.showMessageDialog(this, "Fitxer HelpSet no trobat: " + ee.toString());
        }
    }
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

            final String stringID = "Ajuda.NormesBut";
            // Fem que l'objecte jmiAjuda dispari l'ajuda
            helpBroker.enableHelpOnButton(jmiAjuda, stringID, helpSet);
            // Per obrir l'ajuda amb la tecla de funcio F1
            JRootPane jRootPane = this.getRootPane();
            helpBroker.enableHelpKey(jRootPane, stringID, helpSet);
        } catch (Exception ee) {
            JOptionPane.showMessageDialog(this, "Fitxer HelpSet no trobat: " + ee.toString());
        }
    }
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

            URL url = getClass().getResource("/help/jhelpset.hs");
            if (url == null) throw new NullPointerException("The help set could not be found");
            HelpSet helpSet = new HelpSet(null, url);
            HelpBroker helpBroker = helpSet.createHelpBroker();
            contentsMenuItem.addActionListener(new CSH.DisplayHelpFromSource(helpBroker));
            helpBroker.enableHelpKey(getRootPane(), "about", helpSet);        // for F1
        } catch (Throwable e) {
            final String[] message;
            if (e instanceof NullPointerException) {
                message = new String[] { "Help set not found" };
            } else if (e instanceof NoClassDefFoundError) {
View Full Code Here

Examples of javax.help.HelpBroker.enableHelpKey()

            URL url = getClass().getResource("/help/jhelpset.hs");
            if (url == null) throw new NullPointerException("The help set could not be found");
            HelpSet helpSet = new HelpSet(null, url);
            HelpBroker helpBroker = helpSet.createHelpBroker();
            contentsMenuItem.addActionListener(new CSH.DisplayHelpFromSource(helpBroker));
            helpBroker.enableHelpKey(getRootPane(), "about", helpSet);        // for F1
        } catch (Throwable e) {
            final String[] message;
            if (e instanceof NullPointerException) {
                message = new String[] { "Help set not found" };
            } else if (e instanceof NoClassDefFoundError) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.