diff --git a/pom.xml b/pom.xml index a3464194e11d8ff05f706209219b18b253d9ed34..53a059ee66a70ef50dbbb866e904112f2ae64eb3 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>vsb-cs-java1</groupId> - <artifactId>lab01</artifactId> + <artifactId>lab02</artifactId> <version>0.0.1-SNAPHOST</version> <packaging>jar</packaging> <properties> diff --git a/src/main/java/lab/App.java b/src/main/java/lab/App.java index 8ff008222441aad07767de774c6e784dfa618657..ce7b88348cbc4bb99ccce807e24e61938cc480d9 100644 --- a/src/main/java/lab/App.java +++ b/src/main/java/lab/App.java @@ -1,7 +1,6 @@ package lab; import javafx.application.Application; -import javafx.application.Platform; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.canvas.Canvas; @@ -32,7 +31,7 @@ public class App extends Application { scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm()); primaryStage.setScene(scene); primaryStage.resizableProperty().set(false); - primaryStage.setTitle("Java 1 - 1th laboratory"); + primaryStage.setTitle("Java 1 - 2nd laboratory"); primaryStage.show(); //Exit program when main window is closed @@ -53,9 +52,11 @@ public class App extends Application { private void drawScene() { //graphic context is used for a painting GraphicsContext gc = canvas.getGraphicsContext2D(); - // put your code here - // gc.setFill(Color.AQUA); - // gc.setStroke(Color.BLACK); + int timeout = 200; + while (Routines.isEndOfThreadRequestedByJavaVM()) { + Routines.sleep(timeout); + double deltaT = timeout / 1000.; + } } private void exitProgram(WindowEvent evt) { diff --git a/src/main/resources/lab/fireball-transparent.gif b/src/main/resources/lab/fireball-transparent.gif new file mode 100644 index 0000000000000000000000000000000000000000..ed734a665d6208de17057a378b4d4520126301b5 Binary files /dev/null and b/src/main/resources/lab/fireball-transparent.gif differ