Can't add multiple of same rectangle
问题 I want to make multiple of the same rectangle on my borderPane to make walls for the game. Each wall is going to look the same and be the same size. I know the image works and that there are no other errors. I use the following code to add the rectangles: public class Antz extends Application{ public BorderPane borderPane; public Scene scene; public Image wallImage = new Image("/recources/images/walls.png"); public Rectangle wall = new Rectangle(); public int[][] walls = {{1,0,0,0,0,1,1,1,0,1