Creating a list or array of nodes in javafx With ID in scene builder

55 Views Asked by At

I was working on a project in javafx and scene builder. the project demands 64 squares I create a gridpane that take them. However I need to deal with the rectangles separately so I must create Square objects in my javacontrooller. But is there a way for creating one list for all of them so then I can use thier names in the scene builder Fx id.

I have tried array but it didn't work as the scene builder doesn't take the arrays structure as valid id for the object.

0

There are 0 best solutions below