Vote count:
0
I'm making Tetris in JavaFX and set up a the gameboard of 200 Panes set up in a 10x20 grid. I have added all of those objects to my controller. However, I would like to set all of them up in an array so that it is easier to handle the coordinates. Pane[][] does not seem to be allowed, giving the error in Eclipse "Type mismatch: cannot convert from Pane to Pane[]" for some of the listed Pane object and "b01 cannot be resolved to a type" for others. Can Pane objects simply not be put into an array? I could have sworn I was able to with ToggleButtons in a previous project, but I can't remember for sure. Thanks ahead.
asked 18 secs ago
Aucun commentaire:
Enregistrer un commentaire