jfx-playground
Demo project for integrating Spring Boot and JavaFX. The Demo has the following features:
- Simple working sample code for a small desktop application.
- Configuration for maven or gradle project to use JavaFX with Spring Boot, with the appropriate maven artifact. dependencies for basic development.
- Uses recent, reasonably up-to-date JavaFX modules, with consistent versions.
- Demonstrates placing an FXML file in a resource directory, and looking it up as a resource at runtime.
- Properly separates a controller class from the application class.
- Demonstrates how to bootstrap JavaFX application using Spring Boot.
- Demonstrates how to use Spring Boot features within JavaFX.
- Showcase how to navigate between JavaFX view using a router implementation, heavily inspired on Angular/Router.
Which technologies are being used ?
The project uses the following technologies:
- JavaFX 17
- Spring Boot v3.0.1
Developer Guide
Prerequisites
- Download and install JDK 17.
How to run?
- Open the command line and navigate to the project folder.
- To run using maven use
./mvnw spring-boot:run
command. - To run using gradle use
./gradlew bootRun
command.