this is done in javafx. how would i get a tile to change to a different tile with the click of a mouse. trying to create a tiles game. last pic is what it looks like when ran.
Board tere Project Test TesGame Tiesiona l ne package TilesGame: Project Tiles.iml README.md Board uport javax.event. ActionEvent; import javats, event, EventHandler import javatx.geometry. Insets: import javax.scene. input.MouseEvent; import javax.scene. layout Gridane: import javax.scene. Scene import javax.scene.paint.Color: import javax.scene.shape. Rectangle: import javax.scene.text.Font; import javax.scene. text. Fontweight; import javax.scene.text.Text; import javax.stage. Stage: import javax.scene. text. Font: import javax.scene.text.Fontweights import javax.scene.text.Text; import java.awt. import java.util.Random public class Board public void creatoard() { Tiles Il tileskrray = new Tiles 2013 Stage stage new Stage(); Gridane gridae Grie gridan, setinin gridPane.setPadding new Insets ) i hts 10, right: 10, bottom: 10, left: 10)) Run Tilame T RTODO Unused mortalement MacBook Air 10.A Project Tiles Tiles.cava 1 se bal TilesGame Board l leGamejava oltignore README.md gridPane.setPadding new Insets top 10, Project Tiles.iml Boardjava 10, Bottom 10, Tor: 10); //Tiles tile = new Tiles (PINK); //gridPane.getChildren() .add(tile); Randon randon = new Random(); for(int 120; i blo arte Vhat plicati appent OD DO zicka. itori low to - tha jou ca lick 1-csi va 12, Javara , mm Read this section carefully. If you do not und Terminal Message so appears in that menu, click and choose ECO Build completed successfully in TODO 420 m fresterday 07 PM MacBook Air Board tere Project Test TesGame Tiesiona l ne package TilesGame: Project Tiles.iml README.md Board uport javax.event. ActionEvent; import javats, event, EventHandler import javatx.geometry. Insets: import javax.scene. input.MouseEvent; import javax.scene. layout Gridane: import javax.scene. Scene import javax.scene.paint.Color: import javax.scene.shape. Rectangle: import javax.scene.text.Font; import javax.scene. text. Fontweight; import javax.scene.text.Text; import javax.stage. Stage: import javax.scene. text. Font: import javax.scene.text.Fontweights import javax.scene.text.Text; import java.awt. import java.util.Random public class Board public void creatoard() { Tiles Il tileskrray = new Tiles 2013 Stage stage new Stage(); Gridane gridae Grie gridan, setinin gridPane.setPadding new Insets ) i hts 10, right: 10, bottom: 10, left: 10)) Run Tilame T RTODO Unused mortalement MacBook Air 10.A Project Tiles Tiles.cava 1 se bal TilesGame Board l leGamejava oltignore README.md gridPane.setPadding new Insets top 10, Project Tiles.iml Boardjava 10, Bottom 10, Tor: 10); //Tiles tile = new Tiles (PINK); //gridPane.getChildren() .add(tile); Randon randon = new Random(); for(int 120; i blo arte Vhat plicati appent OD DO zicka. itori low to - tha jou ca lick 1-csi va 12, Javara , mm Read this section carefully. If you do not und Terminal Message so appears in that menu, click and choose ECO Build completed successfully in TODO 420 m fresterday 07 PM MacBook Air