background preloader

JavaFX

Facebook Twitter

Custom Controls

Javafx1.2. Javafx1.3. Clarkeman's Weblog. Last June, I demonstrated a JavaFX class to access the JSON Weather Service from the GeoNames geographical database at Please see my earlier blog, for more information about the Weather Service and how I implemented it in a pre-release version of JavaFX. With the release of JavaFX 1.0, much has changed so I decided to update this example. The main differences are that XML and JSON parsing were totally refactored and the original json.async.AsyncJsonCall class is no longer with us. However, you can still leverage the javafx.async.RemoteTextDocument and the new javafx.data.pull.PullParser classes to obtain the same effect.

I enhanced the example a little, so now you can enter an airport code. The Weather class is basically the same as before. Package jsonweather; var jsonInput: InputStream; // holds the input stream for the JSON data input.requestFocus();

Jfxtras

Memefx - Project Hosting on Google Code. JavaFX News, Demos and Insight // FX Experience. JavaFX 1.3: Taming the Layout Beast | Aim's Blog. In the midst of celebrating JavaFX 1.3‘s performance improvements and CSS-stylable controls, let’s not forget about changes aimed to tame the beast we call “layout”. My JavaFX 1.2 layout blog covered the fundamentals of bridging our declarative, animating scene-graph with traditional GUI layout and here I’ll follow up with some layout guidelines and a series of blogs describing how the changes we made in 1.3 are expressly intended to make your life easier, even if at first, being human, you feel a little resistant to change. Most of the core concepts in JavaFX layout (logical vs. visual bounds, resizable vs not, use of binding vs. containers) remain complex and there’s no getting around spending time to understand them (not unlike 2D or CSS). But the 1.3 API changes should make it easier to get better dynamic layout with less code and fuss and here I’ve rewritten my layout guidelines to take into account 1.3 and another year’s worth of experience in constructing apps: Like this:

Steve On Java.