In my JavaFX program I have multiple grid panes. The FXML code I have is here.
@FXML annotations apply to the Object declared directly after them. You need to write the annotation multiple times on the lines above every component with an fx:id to connect them.
fx:id