FX Experience Has Gone Read-Only

I've been maintaining FX Experience for a really long time now, and I love hearing from people who enjoy my weekly links roundup. One thing I've noticed recently is that maintaining two sites (FX Experience and JonathanGiles.net) takes more time than ideal, and splits the audience up. Therefore, FX Experience will become read-only for new blog posts, but weekly posts will continue to be published on JonathanGiles.net. If you follow @FXExperience on Twitter, I suggest you also follow @JonathanGiles. This is not the end - just a consolidation of my online presence to make my life a little easier!

tl;dr: Follow me on Twitter and check for the latest news on JonathanGiles.net.

SplitPane in JavaFX 2.0

SplitPane in JavaFX 2.0

We’ve introduced a SplitPane control in JavaFX 2.0, and today I thought I’d point out an interesting subtlety in the API. For the longest time our SplitPane API primarily consisted of the normal ‘left’ and ‘right’ (or ‘top’ and ‘bottom’) properties (indeed, the JavaDoc as of today still refers to this API). These were synonomous – if you set ‘top’ and ‘bottom’, they were literally copied to the ‘left’ and ‘right’ code, and our SplitPaneSkin just knew to draw with the items stacked vertically, rather than to lay them out horizontally.

(more…)

Indeterminate CheckBox

Indeterminate CheckBox

The CheckBox in JavaFX can be configured for two states (selected, or not) or three states (selected, unselected, or indeterminate). This indeterminate state is often useful when a checkbox is being used in a TreeView, for example. You might be implementing a tree view showing which features are installed, and need to toggle to an indeterminate state for the branch of some of the children are selected, and some are not.


(more…)

JavaFX 2.0 beta build 30 available now

A new JavaFX 2.0 beta build has been made available. The main feature of this release is that it includes support for working against a 64-bit JVM (although we’re still Windows-only at this stage). Of course, knowing what I know, build 30 is a considerable improvement over build 28, as it has roughly four weeks worth of bug fixes, tweaks, and performance improvements over build 28.

I recommend that everyone that is playing with JavaFX 2.0 beta builds (and from my understanding there has been a huge amount of downloading going on) to update to the latest build as soon as possible, as that helps to uncover new issues and also reflects the very latest features and functionality.

Using JavaFX 2.0 inside Swing applications, by Artem Ananiev

Using JavaFX 2.0 inside Swing applications, by Artem Ananiev

Here’s a good introduction to the JFXPanel component by Artem Ananiev, which allows for embedding JavaFX nodes into a Swing application.

It makes much more sense to use FX content in Swing, because there are so many existing Swing applications and so many exciting FX features. The good news is that using FX in Swing is now possible and, which is more important, officially supported via public API: javafx.embed.swing.JFXPanel. …More

A JavaFX Button and Slider atop a Swing JButton

 

JavaFX2.0 Layout: A Class Tour, by Amy Fowler

JavaFX2.0 Layout: A Class Tour, by Amy Fowler

Great post on layout by Amy Fowler, recommended reading for anyone interested in JavaFX 2.0.

JavaFX2.0 Beta is out. We’ve taken advantage of the language shift to extensively remodel the layout APIs based on a year’s worth of tire-kicking. This article (the first in a series) will introduce you to the basics. ….More

Maps in JavaFX 2.0

Maps in JavaFX 2.0

Something that you see more and more with client applications at the moment is embedded map components. This blog will show you how to embed Google, Yahoo or Bing maps in your JavaFX application.

Google Maps in JavaFX 2.0

Download a copy of the application and try it out. The jar file is linked below, just download it and double click. This requires you to have the JavaFX 2.0 beta runtime installed.



Download double clickable jar

(more…)

JavaFX links of the week, May 30

Howdy folks! It’s been a busy week this week, with the release of the first JavaFX 2.0 beta. I look forward to seeing your blog posts over the coming weeks and months as you get better versed with the API and technologies, and as we keep rolling out beta refreshes to fix bugs, add features and improve performance.

That’s all folks! Keep up the good work, whether that be exploring JavaFX 2.0 (if that’s your thing), or just writing cool JavaFX-related software and blog posts. Catch you next week! 🙂

JavaFX 2.0 Charts

JavaFX 2.0 Charts

We did a complete rewrite of charts in JavaFX 2.0 to add cool features like:

  • Dynamic Data Support
  • Animation
  • Auto Ranging
  • CSS Styling

There is a sample application called “Chart Sampler” that ships with JavaFX 2.0 Beta that shows some of what can be done with the new charts. Here are a few screen shots to tempt you to go and check it out 🙂

(more…)