/jfx-playground

Demo project for Spring Boot and JFX

Primary LanguageJava

JFX Playground

Description

Demo project for integrating Spring Boot and JavaFX. The Demo has the following features:

  1. Simple working sample code for a small desktop application.
  2. Configuration for maven or gradle project to use JavaFX with Spring Boot, with the appropriate maven artifact. dependencies for basic development.
  3. Uses recent, reasonably up-to-date JavaFX modules, with consistent versions.
  4. Demonstrates placing an FXML file in a resource directory, and looking it up as a resource at runtime.
  5. Properly separates a controller class from the application class.
  6. Demonstrates how to bootstrap JavaFX application using Spring Boot.
  7. Demonstrates how to use Spring Boot features within JavaFX.
  8. Showcase how to navigate between JavaFX view using a router implementation, heavily inspired on Angular/Router.

Technologies Used

The project uses the following technologies:

  • Java JDK 21: The latest version of Java Development Kit is used for implementing the application logic.
  • JavaFX 21: A software platform for creating and delivering desktop applications.
  • Spring Boot v3.2.0: An open source Java-based framework used to create a Micro Service. It is developed by Pivotal Team.

Getting Started

Prerequisites

  • Java JDK version 21.
  • An IDE that supports Java and Spring MVC development, such as IntelliJ IDEA
  • Maven or Gradle

Installing

  1. Clone the repository git clone git@github.com:ehayik/jfx-playground.git
  2. Open the project folder.
  3. Run ./mvnw compile to install the necessary dependencies from the POM file.

Running locally

  • Open the command line and navigate to the project folder.
  • To run with maven use ./mvnw spring-boot:run command.
  • To run with gradle use ./gradlew bootRun command.