全文预览

java语言程序设计基础篇第十版第十四章练习答案

上传者:非学无以广才 |  格式:docx  |  页数:45 |  大小:30KB

文档介绍
age) { Р GridPane pane = new GridPane();Р Р pane.add(new FanPane(), 0, 0);Р pane.add(new FanPane(), 1, 0);Р pane.add(new FanPane(), 0, 1);Р pane.add(new FanPane(), 1, 1);Р Р // Create a scene and place it in the stageР Scene scene = new Scene(pane, 200, 200);Р primaryStage.setTitle("Exercise14_09"); // Set the stage titleР primaryStage.setScene(scene); // Place the scene in the stageР primaryStage.show(); // Display the stageР }Р /**Р * The main method is only needed for the IDE with limitedР * JavaFX support. Not needed for running from mand line.Р */Р public static void main(String[] args) {Р launch(args);Р }Р} Рclass FanPane extends Pane {Р double radius = 50;Р Р public FanPane() {Р Circle circle = new Circle(60, 60, radius);Р circle.setStroke(Color.BLACK);Р circle.setFill(Color.WHITE);

收藏

分享

举报
下载此文档