import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.image.ImageView;
import javafx.scene.layout.GridPane;

import java.net.URL;
import java.util.ResourceBundle;

/**
 * Created by vongola12324 on 2015/12/16.
 */
public class MainViewController implements Initializable {
    private ImageView[][] board = new ImageView[20][20];
    @FXML
    GridPane MainView_Board;

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        for(int i = 0; i < 20; i++) {
            for(int i2 = 0; i2 < 20; i2++) {
                board[i][i2] = new ImageView("image/board.jpg");
                board[i][i2].setFitHeight(37);
                board[i][i2].setFitWidth(38);
                MainView_Board.add(board[i][i2], i, i2);
            }
        }
    }

}

@@ -186,58 +186,8 @@
 e;%0A%0A
-/**%0A * Created by vongola12324 on 2015/12/16.%0A */%0A
 publ
@@ -298,16 +298,70 @@
 0%5D%5B20%5D;%0A
+    private ChessBoard chessBoard = new ChessBoard();%0A
     @FXM

Add ChessBoard into UI