PacktLib: JavaFX 1.2 Application Development Cookbook

JavaFX 1.2 Application Development Cookbook


About the Author

About the Reviewers


Getting Started with JavaFX


Installing the JavaFX SDK

Setting up JavaFX for the NetBeans IDE

Setting up JavaFX for the Eclipse IDE

Using javafxc to compile JavaFX code

Creating and using JavaFX classes

Creating and using variables in JavaFX

Using binding and triggers to update variables

Creating and using JavaFX functions

Integrating your JavaFX code with Java

Creating and using JavaFX sequences

Working with JavaFX String

Creating JavaFX Applications


Building a JavaFX application

Drawing simple shapes

Creating complex shapes using Path

Creating shapes with constructive area geometry

Drawing letter shapes using the Text class

Handling user input

Arranging your nodes on stage

Making your scripts modular

Creating your own custom node

Controlling your application's window style

Going full-screen

Transformations, Animations, and Effects


Modifying shapes with the Transformation API

Creating simple animation with the Transition API

Composing animation with the Transition API

Building animation with the KeyFrame API

Creating custom interpolators for animation

Morphing shapes with the DelegateShape class

Using data binding to drive animation sequences

Applying cool paint effects with gradients

Creating your own customized Paint

Adding depth with lighting and shadow effects

Creating your own Text effect

Adding visual appeal with the Reflection effect

Components and Skinning


Creating a form with JavaFX controls

Displaying data with the ListView control

Using the Slider control to input numeric values

Showing progress with the progress controls

Creating a custom JavaFX control

Embedding Swing components in JavaFX

Styling your applications with CSS

Using CSS files to apply styles

Skinning applications with multiple CSS files

JavaFX Media


Accessing media assets

Loading and displaying images with ImageView

Applying effects and transformations to images

Creating image effects with blending

Playing audio with MediaPlayer

Playing video with MediaView

Creating a media playback component

Working with Data


Saving data locally with the Storage API

Accessing remote data with HttpRequest

Downloading images with HttpRequest

Posting data to remote servers with HttpRequest

Uploading files to servers with HttpRequest

Building RESTful clients with the PullParser API

Using the Feed API to create RSS/Atom clients

Visualizing data with the JavaFX chart API

Deployment and Integration


Building and packaging your app with an IDE

Building and packaging your app with javafxpackager

Packaging your app to be Web Start(ed)

Packaging your app as an applet

Passing arguments to JavaFX applications

Making your applets drag-to-install

Controlling JavaFX applets from JavaScript

The JavaFX Production Suite


Loading multiple images dynamically

Exporting Adobe Photoshop graphics to JavaFX

Exporting Adobe Illustrator graphics to JavaFX

Exporting Scalable Vector Graphics (SVG) to JavaFX

Using objects loaded from FXZ files

Mobile JavaFX

JavaFX Composer

JavaFX Products and Frameworks

Best Practices for Development

Best Practices for Deployment