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

https://github.com/interacto/example-jfx-drawingeditor

A JavaFX app that uses Interacto
https://github.com/interacto/example-jfx-drawingeditor

Last synced: 7 months ago
JSON representation

A JavaFX app that uses Interacto

Awesome Lists containing this project

README

          

An example of how to use Interacto to develop a JavaFX application.
This app follows the MVP pattern: the presenters (package 'presenter') binds the model to the view. These two last do not know each others.

### Packages

'draw': the main class.
'command': the GUI commands that users can produce while interacting with the GUI.
'presenter': the controllers/presenters/... that receives events from the GUI and that transform them into commands
'model': the model of the app. Knows nothing about the view, the instruments, and the commands
'view': the JavaFX view

### Requirements

Java 11 is required.

### Build

`mvn clean package` does the job.

### execution

The `dist` folder is the packaged app.
No JVM is required to run the app since `dist` contains both the app and a tiny JVM dedicated to the app.
Double-click on `dist/bin/run` to launch the app.