Skip to content
Examples how to build apps in JavaFX using TestFX and Continuous Integration
Java CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Examples how to build apps using the JavaFX & TestFX APIs. This project has exploratory ⚠️ character. This project requires Java 1.8 JDK to compile (with test), package and run.

The idea for this project was born at the JavaFX for Business Applications workshop with Hendrik Ebbers. There is great software available, great frameworks for JavaFX but somehow often there is a lack of good examples.


  • explore JavaFX concepts
  • discover and try out pattern to decouple GUI from business logic
  • explore concepts for automated testing of GUI functionality
  • implement everything in a Maven build
  • have everything runnable in headless mode to enable continuous builds
  • Later this project will be migrated to Java 9

Pocket Calculator

A typical business application consisting of multiple views organized in tabs. The goal is here, to demonstrate how to decouple GUI logic from business logic. Furthermore TestFX capabilities for testing JavaFX controls are explored.


Run to test, to build, to package:

On bash:

	./mvnw test
	./mvnw jfx:jar
	./mvnw jfx:native

On Windows command line:

	mvnw test
	mvnw jfx:jar
	mvnw jfx:native


Good sources for JavaFX

APIs being used:

Other considerable points

Resources for Java 9 migration

Dependency Injection using @Inject

You can’t perform that action at this time.