All you need is properly installed JDK, And with a little help from your preferred IDE
you will get almost a complete portable working environment ).
Using Netbeans will hide the complexity behind generating a runnable jar
file, for serious project using a dependency manager will be a must , both Gradle and Maven have good JavaFX
plugin for build automation (by using Maven, you can clone my Github
repository and start working immediately whatever the OS
you're running),for more about JavaFX
and Java SE
integration see this answer from a OpenJDK
contributor.
javaFX2 miglayout portability
Miglayout has a JavaFX
plugin all you need is to add miglayout-javafx.jar
and the miglayout-core.jar
to your CLASSPATH
, so there is no portability issues with MigLayout
.
MigLayout
is a real powerful layout manager (especially when it comes to Swing
), but I prefer going the idiomatic way of building JavaFX
user interfaces (essentially, enterprise and data-driven applications) by using fxml and scenebuilder.