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

ClassCastException on Controllers created via FXMLLoader

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • None
    • javafx
    • None
    • Java 7, Mac OS-x Lion,
      Javafx Preview.

      Loading node, which uses custom controller, via FXMLLoader.
      Unable to cast loader.getController() to the controller class.
      Controller is created via sun.misc.Launcher$AppClassLauncher
      Default class for application should be java.net.URLClassLoader.
      Used Netbeans - Create JavaFX FXML project, then modify main java class as in attachment. (Netbeans project attached).

            gkbrown Greg Brown (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: