blob: 5af329ece6a8280827001a46f18e6035ebd10955 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
package de.fhswf.in.inf.java2.aufgabe04;
import javafx.application.Application;
import javafx.application.Platform;
import javafx.scene.Scene;
import javafx.stage.Stage;
public class CountdownButtonMain extends Application
{
@Override
public void start(Stage primaryStage)
{
CountdownExitButton ceb = new CountdownExitButton("Ok", 30);
ceb.setOnAction(e -> {
Platform.exit();
});
Scene scene = new Scene(ceb);
primaryStage.setScene(scene);
primaryStage.show();
ceb.startCountdown();
}
public static void main(String[] args)
{
launch(args);
}
}
|