Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7ced746

Browse files
authored
createfourfans
1 parent1fcbde2 commit7ced746

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎Exercise_14/Exercise_14_09/Exercise_14_09.java‎renamed to ‎createfourfans‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*********************************************************************************
22
* (Create four fans) Write a program that places four fans in a GridPane with *
3-
* two rows and two columns, as shown in Figure 14.45b. *
3+
* two rows and two columns *
44
*********************************************************************************/
55
import javafx.application.Application;
66
import javafx.stage.Stage;
@@ -14,8 +14,8 @@
1414
import javafx.scene.paint.Color;
1515
import javafx.geometry.Insets;
1616

17-
publicclassExercise_14_09extendsApplication {
18-
@Override// Override the start method in the Application class
17+
public classcreatefourfans extends Application {
18+
// Override the start method in the Application class
1919
public void start(Stage primaryStage) {
2020
// Create a GridPane and set its properties
2121
GridPane gridPane = new GridPane();
@@ -42,7 +42,7 @@ public void start(Stage primaryStage) {
4242

4343
// Create a scene and place in in the stage
4444
Scene scene = new Scene(gridPane);
45-
primaryStage.setTitle("Exercise_14_09");// Set the stage title
45+
primaryStage.setTitle("createfourfans"); // Set the stage title
4646
primaryStage.setScene(scene); // Place the scene in the stage
4747
primaryStage.show(); // Display the stage
4848
}
@@ -69,4 +69,4 @@ private Circle getCircle() {
6969
c.setFill(Color.WHITE);
7070
return c;
7171
}
72-
}
72+
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp