File tree 2 files changed +27
-7
lines changed
2 files changed +27
-7
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
- <module type =" JAVA_MODULE" version =" 4" />
2
+ <module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=" true" type =" JAVA_MODULE" version =" 4" >
3
+ <component name =" NewModuleRootManager" LANGUAGE_LEVEL =" JDK_11" >
4
+ <output url =" file://$MODULE_DIR$/target/classes" />
5
+ <output-test url =" file://$MODULE_DIR$/target/test-classes" />
6
+ <content url =" file://$MODULE_DIR$" >
7
+ <sourceFolder url =" file://$MODULE_DIR$/src/main/java" isTestSource =" false" />
8
+ <excludeFolder url =" file://$MODULE_DIR$/target" />
9
+ </content >
10
+ <orderEntry type =" inheritedJdk" />
11
+ <orderEntry type =" sourceFolder" forTests =" false" />
12
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-controls:13" level =" project" />
13
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-controls:win:13" level =" project" />
14
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-graphics:13" level =" project" />
15
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-graphics:win:13" level =" project" />
16
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-base:13" level =" project" />
17
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-base:win:13" level =" project" />
18
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-fxml:13" level =" project" />
19
+ <orderEntry type =" library" name =" Maven: org.openjfx:javafx-fxml:win:13" level =" project" />
20
+ </component >
21
+ </module >
Original file line number Diff line number Diff line change @@ -71,6 +71,11 @@ private void initComponents(Stage stage) {
71
71
TextField secTextField = new TextField ();
72
72
grid .add (secTextField , 1 , 3 );
73
73
74
+ Label clockLbl = new Label ("Time:" );
75
+ grid .add (clockLbl , 0 , 5 );
76
+ time = new Label ("" );
77
+ grid .add (time , 1 , 5 );
78
+
74
79
Button btn = new Button ("Set time" );
75
80
HBox hbBtn = new HBox (10 );
76
81
hbBtn .setAlignment (Pos .BOTTOM_LEFT );
@@ -126,11 +131,6 @@ public void handle(ActionEvent e) {
126
131
Label timeAlarm = new Label (alarm .printTime ());
127
132
grid .add (timeAlarm , 1 , 5 + alarmCount );
128
133
}
129
-
130
- Label clock = new Label ("Time:" );
131
- grid .add (clock , 0 , 5 );
132
- time = new Label ("" );
133
- grid .add (time , 1 , 5 );
134
134
}
135
135
});
136
136
@@ -197,12 +197,13 @@ public void handle(ActionEvent e) {
197
197
stopBtn .setDisable (true );
198
198
startBtn .setDisable (true );
199
199
200
- for (int i = 5 + alarmCount ; i >= 5 ; i --)
200
+ for (int i = 5 + alarmCount ; i > 5 ; i --)
201
201
deleteRow (i );
202
202
203
203
alarmCount = 0 ;
204
204
isTime = false ;
205
205
scenetitle .setText ("SetClock" );
206
+ time .setText ("" );
206
207
}
207
208
});
208
209
You can’t perform that action at this time.
0 commit comments