Skip to content
Snippets Groups Projects
Commit 88f1e105 authored by Anders Emil Bergan's avatar Anders Emil Bergan
Browse files

Made small adjustments to make a strong base master branch. Javafx:run works

parent 2bc5212c
No related branches found
No related tags found
No related merge requests found
Pipeline #209347 passed
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
<maven.compiler.source>17</maven.compiler.source> <maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target> <maven.compiler.target>17</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<junit.version>5.8.1</junit.version> <junit.version>5.9.2</junit.version>
<javafx.version>17.0.1</javafx.version> <javafx.version>19.0.2.1</javafx.version>
</properties> </properties>
<repositories> <repositories>
...@@ -172,7 +172,7 @@ ...@@ -172,7 +172,7 @@
<!-- Default configuration for running with: mvn clean javafx:run --> <!-- Default configuration for running with: mvn clean javafx:run -->
<id>default-cli</id> <id>default-cli</id>
<configuration> <configuration>
<mainClass>no.ntnu.idatt1002.demo/no.ntnu.idatt1002.demo.view.MyApp</mainClass> <mainClass>no.ntnu.idatt1002.demo.view.MyApp</mainClass>
<launcher>app</launcher> <launcher>app</launcher>
<jlinkZipName>app</jlinkZipName> <jlinkZipName>app</jlinkZipName>
<jlinkImageName>app</jlinkImageName> <jlinkImageName>app</jlinkImageName>
......
...@@ -130,6 +130,6 @@ public class SceneController /*implements Initializable*/ { ...@@ -130,6 +130,6 @@ public class SceneController /*implements Initializable*/ {
public void closeButton(ActionEvent actionEvent) { public void closeButton(ActionEvent actionEvent) {
final Node source = (Node) actionEvent.getSource(); final Node source = (Node) actionEvent.getSource();
final Stage stage = (Stage) source.getScene().getWindow(); final Stage stage = (Stage) source.getScene().getWindow();
stage.close();; stage.close();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment