For developers

The basics

Mapton is written in Java and is based atop the NetBeans Platform (NBP).

Some of the main advantages of the NBP for Mapton is the Window system, the Plugin manager and the Lookup system.

NBP is based on the Swing GUI framework but Mapton is a hybrid using JavaFX where possible and Swing when necessary. In practice, Swing is used for top level windows and dialogs.

API

The public classes are located in a couple of api packages. These classes provides extension points and other useful stuff. Please do note that the API is far from being stable.

Extending Mapton

Have a look at the source of the Demo module, it will contain examples on how to extend Mapton with a custom plugin.

The source

The source is hosted at github.com.

Building Mapton

The following steps will guide you to successful build of Mapton.

Preparation

Install git, maven, a Java 8 SDK (with JavaFX).

mkdir mapton-builder
cd mapton-builder

Dependencies (not available from Maven Central)

#Almond
git clone https://github.com/trixon/almond3
cd almond3
mvn clean install
cd ..

#GMapsFX
git clone https://github.com/rterp/GMapsFX.git
cd GMapsFX/GMapsFX
mvn clean install -Dmaven.javadoc.skip=true
cd ../..

Mapton

#Mapton
​​git clone --depth 1 --branch SNAPSHOT https://github.com/trixon/mapton.git
cd mapton
mvn package
#List resulting zip file
ls -la application/target/mapton*.zip
#Run Mapton
​application/target/mapton/bin/mapton