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

Remove multiple use of @FXML decorator in controller class

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 8u5
    • javafx
    • Windows 7 x86_64, JDK 8u4

      Now in controller files we have multiple instances of @FXML decorator. It will be better where decorator @FXML will include all lines(section) to the empty new line.

      Example:
      Now:

      @FXML
      Button example_button;
      @FXML
      Label example_label;

      My suggestion:
      // section from FXML file
      @FXML
      Button example_button;
      Label example_label;
      HBox example_hbox;

      // normal java code section
      String str;
      Object object;

            jgiles Jonathan Giles
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: