How can I open javahelp from javafx?

117 Views Asked by At

I have used JavaHelp with swing and I could do

  try {
            URL helpURL = this.getClass().getResource("/help/help.hs");
            HelpSet helpset = new HelpSet(null, helpURL);
            HelpBroker browser = helpset.createHelpBroker();
            browser.enableHelpOnButton(MY_BUTTON, "main", helpset);
        } catch (Exception ex) {
            ...
        }

Where MY_BUTTON was a swing button, but I cannot do the same on JavaFX since JavaFX buttons are not swing/awt buttons.

How could open javahelp using JavaFX buttons?

0

There are 0 best solutions below