Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daggerok/javafx-spring-boot-app

Skeleton of simple Spring Boot + JavaFX app
https://github.com/daggerok/javafx-spring-boot-app

java13 javafx javafx-application spring-boot

Last synced: 3 days ago
JSON representation

Skeleton of simple Spring Boot + JavaFX app

Awesome Lists containing this project

README

        

# javafx-spring-boot-app
Skeleton of simple Spring Boot + JavaFX app

requires Java 13

_SpringBootJavaFXApp.java_

```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:
* [GitHub: daggerok/kotlinfx](https://github.com/daggerok/kotlinfx)
* [GitHub: daggerok/javafx-examples - JavaFX examples](https://github.com/daggerok/javafx-examples)
* [YouTube: Fully Reactive: Spring, Kotlin, and JavaFX Playing Together](https://www.youtube.com/watch?v=Lse51SpfKHo)