Skip to content

Commit

Permalink
Bumped spring-boot-starter-javafx to 1.0.9 to fix the startup issue
Browse files Browse the repository at this point in the history
  • Loading branch information
yoep committed Aug 26, 2020
1 parent 2e594e4 commit a74b9b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>

<spring-boot-starter-javafx.version>1.0.7</spring-boot-starter-javafx.version>
<spring-boot-starter-javafx.version>1.0.9</spring-boot-starter-javafx.version>
<javafx.version>13.0.2</javafx.version>

<start-class>com.compare.xsd.XsdCompareStarter</start-class>
Expand Down Expand Up @@ -139,7 +139,7 @@
<plugin>
<groupId>io.github.fvarrui</groupId>
<artifactId>javapackager</artifactId>
<version>1.0.2</version>
<version>1.1.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/compare/xsd/XsdCompareApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import com.github.spring.boot.javafx.view.ViewManagerPolicy;
import com.github.spring.boot.javafx.view.ViewProperties;
import javafx.stage.Stage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.File;
Expand All @@ -22,8 +23,8 @@ public static void main(String[] args) {
@Override
public void start(Stage primaryStage) throws Exception {
super.start(primaryStage);
ViewLoader loader = applicationContext.getBean(ViewLoader.class);
ViewManager viewManager = applicationContext.getBean(ViewManager.class);
var loader = applicationContext.getBean(ViewLoader.class);
var viewManager = applicationContext.getBean(ViewManager.class);

loader.show(primaryStage, "main.fxml", ViewProperties.builder()
.icon("logo_64.png")
Expand Down

0 comments on commit a74b9b9

Please sign in to comment.