JavaFX - Multiple Grid Panes - Only One is connecting, the rest are null

前端 未结 1 468
悲哀的现实
悲哀的现实 2021-01-25 02:18

In my JavaFX program I have multiple grid panes. The FXML code I have is here.





        
1条回答
  •  温柔的废话
    2021-01-25 03:11

    @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.

    0 讨论(0)
提交回复
热议问题