编写程序绘制国际象棋棋盘(作业只要网上提交实体类和截图,不需要提交实验报告纸质稿) 使用javafx绘制,提示如下: (1)Canvas canvas=new Canvas(chessboard.getWidth(),chessboard.getHeight()); GraphicsContext gc = canvas.getGraphicsContext2D(); (2)Pane pane=new Pane(); pane.getChildren().add(canvas); (3)Scene scene=new Scene(pane,400,300); primaryStage.setScene(scene);