Skip to content

daggerok/javafx-spring-boot-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

javafx-spring-boot-app

Skeleton of simple Spring Boot + JavaFX app

requires Java 13

SpringBootJavaFXApp.java

@SpringBootApplication
public class SpringBootJavaFXApp extends Application {

    private ConfigurableApplicationContext applicationContext;

    @Override
    public void init() throws Exception {
        applicationContext = new SpringApplicationBuilder(SpringBootJavaFXApp.class).run();
    }

    @Override
    public void start(Stage primaryStage) {
        applicationContext.publishEvent(new StageStartedEvent(primaryStage));
    }

    @Override
    public void stop() throws Exception {
        applicationContext.close();
        Platform.exit();
    }

    public static void main(String[] args) {
        Application.launch(SpringBootJavaFXApp.class, args);
    }
}

links:

About

Skeleton of simple Spring Boot + JavaFX app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages