Java Reference
In-Depth Information
12
JavaFX Code
Recipes
“As everybody knows, there is only one infallible
recipe for the perfect omelette: your own.”
—Elizabeth David
J avaFX code recipes are simple pieces of code that show how to tackle a
unique coding problem. There are probably a million such recipes, we have chosen
a few to detail in this chapter that are somewhat unique to the JavaFX environ-
ment.
The first section, JavaFX and JavaBeans, shows a way to bridge the JavaFX and
JavaBeans frameworks. Next, the section on Server Call Back details how to deal
with asynchronous call backs from a server. The Node Effects—Fader and Mag-
nifier section demonstrates how to use generic classes for two common effects.
Wizard shows how to implement the Wizard pattern for breaking a complex pro-
cess into smaller tasks. Progress Bar and Slider lay out how to implement two
common components. Finally, Matrix details how to implement a two-dimen-
sional array in JavaFX.
On the topic's Web site at http://jfxbook.com, you can find the full listing for all
these recipes.
JavaFX and JavaBeans
JavaBeans technology is a component architecture with the Java platform that
supports component reuse. It has been around since the early days of Java, and
303
 
 
Search WWH ::




Custom Search