FxBuilder Update 3 - No Fluff Just Stuff

FxBuilder Update 3

Posted by: Andres Almiray on June 25, 2009

These are the latest features that you can find in FxBuilder
  • JFXtras 0.5 support - JFXtras is an open source project that aims to fill the gaps found in the current JavaFX SDK API. You might remember this project was mentioned previously on this blog, when jSilhouette 0.3 was released. JFXtras 0.5 no longer depends on jSilhouette as all shapes have been completely rewritten to be compatible with JavaFx's mobile profile.
  • Any Swing component will be automatically wrapped an inserted into the current Fx hierarchy, this will also work in a Griffon application.
  • An Fx scene can be inserted in a Swing container, yup read that again. Fx wrapped with Swing! caveat: some elements may not resize themselves automatically, this might change in the future.
  • Media support, tested on Windows/OSX, it should work on Linux/Solaris too but I've been unable to get it to work, I'm probably missing something because not even plain JavaFX seems to work for me at the moment.
JavaFX enthusiasts know that javafx.com is the place to start when searching for JavaFX tips & tricks, that is where I found a small tutorial that shows how a simple MediaPlayer can be created, the required JavaFX Script code is pretty much this
That's pretty straight forward, so let's look at the FxBuilder version
Not much of a difference isn't it? one thing that I like about builders is that they can leverage conventions and the currently executing context, notice for example that on the Groovy version there is no need to set the mediaPlayer property of MediaView, the builder does that for you!

Regarding the griffon-fx plugin, it is now able to run an Fx powered application in standalone mode (via griffon run-app), some minor tweaks need to be done to be able to run an application in applet/webstart modes, nothing out of the ordinary really, the plugin will make sure everything is in order once it's released. However the plugin requires changes found on the current development build so it is very unlikely for it to be released before the next Griffon release comes out.

Keep on Groovying!
Andres Almiray

About Andres Almiray

Andres is a Java/Groovy developer and a Java Champion with more than 20 years of experience in software design and development. He has been involved in web and desktop application development since the early days of Java. Andres is a true believer in open source and has participated on popular projects like Groovy, Griffon, and DbUnit, as well as starting his own projects (Json-lib, EZMorph, GraphicsBuilder, JideBuilder). Founding member of the Griffon framework and Hackergarten community event. https://ch.linkedin.com/in/aalmiray

Why Attend the NFJS Tour?

  • » Cutting-Edge Technologies
  • » Agile Practices
  • » Peer Exchange

Current Topics:

  • Languages on the JVM: Scala, Groovy, Clojure
  • Enterprise Java
  • Core Java, Java 8
  • Agility
  • Testing: Geb, Spock, Easyb
  • REST
  • NoSQL: MongoDB, Cassandra
  • Hadoop
  • Spring 4
  • Cloud
  • Automation Tools: Gradle, Git, Jenkins, Sonar
  • HTML5, CSS3, AngularJS, jQuery, Usability
  • Mobile Apps - iPhone and Android
  • More...
Learn More »