In our previous post we presented a JavaFX Sketch Pad example that uses three RGB sliders to manipulate a drawing line’s color. In this post, we’ll use a color picker made with all the JavaFX built-in colors. Since JavaFX colors are are static fields with familiar (and maybe not so familiar) names like BLUE, GREEN, […]
Monthly Archives: October 2011
JavaFX Sketch Pad: Custom Binding
Sketch pad programs are fun to build and fun to test. And writing a sketch pad program in JavaFX is no different, except that maybe it’s more fun. So, what constructs do we need to create a decent sketch pad program in JavaFX? At the minimum, we need to Detect mouse events for mouse click, […]
JavaFX Animation and Binding: Using the ProgressBar
Our previous post describes a JavaFX countdown timer. Let’s take that same program and add a progress bar control. As the timer counts down, the progress bar gradually fills in—as shown in the screenshot here. When the timer begins (at 15), the progress bar is empty (all gray) and when the timer reaches 0, the […]
JavaFX Animation and Binding: Simple Countdown Timer
JavaFX has a powerful animation feature that’s flexible and easy to use. I’m going to build a simple countdown timer that uses animation to countdown a numeric display from 15 (for example) to zero. I can imagine such a timer in some sort of response game that limits the time you have to make a […]
The Return of JavaFX™
JavaFX™, the rich UI design system from Sun Microsystems and then Oracle, never really went away. But JavaFX Script 1.x has been replaced by JavaFX 2.x Java APIs. As a fan of JavaFX script (and co-author of Essential JavaFX), I loved working with many of the unique features that JavaFX provided, such as easy animation, […]