I'm getting a laundry list of errors and it all stems from trying got access the image files. I would like to display a random set of 4 images in a TilePane that each time a button is pressed, a new set of images will appear. I have labeled the images i.png where i represents a number. I've setup a File with the folder directory for the new File( ). Is there a better way to upload image files in the program? Should I setup a separate method to handle the shuffled images? Also, I have not implemented any reset button yet, I'm just trying to get the file images to load. This is some of the code so far:
This is how I went about adding the images to the pane, is this legal?