Book Image

JavaFX 1.2 Application Development Cookbook

By : Vladimir Vivien
Book Image

JavaFX 1.2 Application Development Cookbook

By: Vladimir Vivien

Overview of this book

JavaFX Script enables you to easily create rich Internet applications by embedding multimedia components. Although you can create stylish Internet applications by modifying these default components, even advanced users find it challenging to create impressive feature-rich Internet applications with JavaFX. Also, there are limited JavaFX components to work with and by default these components don't look visually appealing.This book explores limitless possibilities to style your application by coding JavaFX components to display your content in a more appealing fashion. The recipes in this book will help you to create customized JavaFX components with which you can make modern, feature-rich applications.First, you will be introduced to the JavaFX SDK and other development tools available to help you be productive during development. You will create an application in JavaFX by arranging complex graphical components (and non-graphical libraries) with simplified declarative constructs. You will then explore the fun side of JavaFX by using transformation techniques to manipulate the location and dimensions of objects. The next chapter is about the GUI components that are available in the framework, which provide a high level of interactivity. You will learn how to use the media component to play media content. Then we will access data and manipulate data locally or remotely. You will explore many deployment options and integration tips and tricks to take advantage of runtime contexts. Finally, you will interact with pure Java code to read and write files in JavaFX and to establish interactions with computing platforms.
Table of Contents (18 chapters)
JavaFX 1.2 Application Development Cookbook
Credits
About the Author
About the Reviewers
Preface
Mobile JavaFX
JavaFX Composer
JavaFX Products and Frameworks
Best Practices for Development
Best Practices for Deployment

Using objects loaded from FXZ files


In the previous recipes, we have seen how to integrate creative content from tools, such as Adobe Photoshop and Illustrator, into JavaFX projects using the Production Suite tools. In this recipe, we are going to see how to load graphics nodes from a FXZ file. You will learn how to use NetBeans to generate JavaFX UI stub classes that provide programmatic access to the objects inside the FXZ files.

Getting ready

Prior to continuing with the materials in this recipe, you must be familiar with the topic of generating FXZ files covered in the recipes Exporting Adobe Photoshop graphics to JavaFX, Exporting Adobe Illustrator graphics to JavaFX, and Exporting Scalable Vector Graphics (SVG) to JavaFX. You will need an FXZ file generated using the methods discussed in these recipes.

Another requirement for this recipe is the use of the NetBeans IDE. The techniques covered here use features available in that IDE. If you are not a NetBeans user, see the There's more...