This is a basic JavaFX implementation of MineSweeper, the Game that can easily be added to a JFX application.
First create an object of Board
class
Board ob=new Board(X_SIZE,Y_SIZE,MINE_AMOUNT);
Then get a JavaFX GridPane using the object.
ob.getGridPane();
Add this GridPane to your required JavaFX Node/Container to show in a scene.