javaFX2 miglayout portability
I'm pretty new to Java and I'm just starting to venture into the UI world of it. I've looked at what framework and tools to use. My goals are:
As for everything I do, I start with a lot of documentation and research and right now my choice is landing on javaFX and miglayout.
I develop with Linux Ubuntu (currently 13.04) but my user base will be a mix of windows and Ubuntu and maybe some MAC users.
I wanted to know from people with way more experience, their pain points while developing with javaFX2 and migLayout when it comes to portability to other OS.
I have found this thread: How portable is JavaFX 2? But the answer I'm looking for is not: it works in "X" but rather. To make it work in "X" and "Y". "a", "b" and "c" will have to be taken care of. handling "z" is hard because etc...
Thanks.
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.
more resources :
上一篇: 如何编写可移植的Git库脚本?