Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8117191

JavaFX applications with FXML fail while running on browser

XMLWordPrintable

      When we try to run a JavaFX FXML application embedded as applet, it fails because of a RuntimeException.

      javafx.fxml.FXML loader's private HashMap<String, Field> getControllerFields() throws LoadException;
      method throws a SecurityAcception while calling getDeclaredFields method of the controller class.

      Developers should be able to embed their JavaFX FXML applications GUI's without signing their jars.

      One possible solution is to call getFields method instead of calling getDeclaredFields. Developers can declare controller fields as public.

            lnerad Ľubomír Nerád (Inactive)
            cozeljfx Canay OZEL (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified