background preloader

JavaFX

Facebook Twitter

Masking in Javafx 2.0 « Java and FX. JavaFX 2.0 With Alternative Languages - Groovy, Clojure, Scala, Fan... Sample application using JavaFX 2.0 beta and the after thoughts. This sample uses- TabPane, GridView and Bindings in javafx 2.0. I had quite sometime back played around with JavaFX and had good and bad experiences using the language. With the JavaFX 2.0 beta being released I thought of giving it a try. Here I developed a simple Geocoding application which will take the address and provide the latitude-longitude values for that location- using Google Geocoding API. I used Groovy for the parsing of the json as the latest version-1.8 provides a really neat json parsing support. You can see that the json parsing using JsonSlurper is so succinct. The groovy parser returns the latitude, longitude and location type (these are the values of interest for our application) values in the Geocode wrapper class- which is again a Grooy bean.

Now lets look at the JavaFX code which actually is the crux of this post- This control (textbox) holds the latitude value obtained after passing the json response sent by the Geocoding API. Here are a few After thoughts- Update: Working with the JavaFX Scene Graph | JavaFX Tutorials and Documentation. Skinning JavaFX Applications with CSS | JavaFX Tutorials and Documentation. Using Xtext to create JavaFX-CSS Editor. While working on the example application showed in my last blog I missed the possibility to edit the CSS-Files used to theme JavaFX-applications. Having heard about Xtext and that it allows one easily create editors for your DSL (and CSS is nothing more) I decided to start teaching myself some Xtext and so I sat down the last 2 evenings and worked on an editor to author CSS-Files for JavaFX.

First of all I had (or better still have) not a really a knowledge about language design, LL-Parsers, … so what I produced until now is probably nonsense. Anyways even if not 100% correct yet I have a working editor which is able to parse the FX-CSS-File coming with the JavaFX 2.0 example. It’s quite amazing at least for me as a total newbie to all this stuff to get an editor with autocompletion, … working in such a short time – Xtext rocks. Maybe this Xtext-based editor can be used to build a JavaFX-Tooling and Runtime-Stack on top of Eclipse technologies: Like this: Like Loading... Dynamically setting the side of TabPane in JavaFX 2.0 « Lawrencepremkumar's Blog. Rebooting JavaFX, Part 1 | JavaWorld's Daily Brew. Rich Internet Application Development with JavaFX. Working with Layouts in JavaFX | JavaFX Tutorials and Documentation.

Adding HTML Content to JavaFX Applications | JavaFX Tutorials and Documentation. Maps in JavaFX 2.0.