Skip to content

interacto/example-jfx-drawingeditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.