Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4373

Obsolete JavaFX FXML Controller Skeleton generated

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 12.0
    • Fix Version/s: None
    • Component/s: javafx - Project
    • Labels:
      None

      Description

      The generated FXML controller is out of date. The correct version is what SceneBuilder 11 generates.

      // THE WRONG ONE GENERATED BY NETBEANS

      import java.net.URL;
      import java.util.ResourceBundle;

      /**

      • FXML Controller class
        *
      • @author
        */
        public class CasinoFXMLController implements Initializable {

      /**

      • Initializes the controller class.
        */
        @Override
        public void initialize(URL url, ResourceBundle rb) { // TODO }

      }

      ------------------------------------

      // THE RIGHT ONE AS GENERATED BY SCENEBUILDER

      import java.net.URL;
      import java.util.ResourceBundle;
      import javafx.fxml.FXML;

      public class CasinoFXMLController {

      @FXML // ResourceBundle that was given to the FXMLLoader
      private ResourceBundle resources;

      @FXML // URL location of the FXML file that was given to the FXMLLoader
      private URL location;

      @FXML // This method is called by the FXMLLoader when initialization is complete
      void initialize() {

      }
      }

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              omniprof Kenneth Fogel
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: