JavaFX 1.2 Application Development Cookbook


JavaFX 1.2 Application Development Cookbook
eBook: $23.99
Formats: PDF, PacktLib, ePub and Mobi formats
$20.39
save 15%!
Print + free eBook + free PacktLib access to the book: $63.98    Print cover: $39.99
$39.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • Easily develop feature-rich internet applications to interact with the user using various built-in components of JavaFX
  • Make your application visually appealing by using various JavaFX classes—ListView, Slider, ProgressBar—to display your content and enhance its look with the help of CSS styling
  • Enhance the look and feel of your application by embedding multimedia components such as images, audio, and video
  • Part of Packt's Cookbook series: Each recipe is a carefully organized sequence of instructions to complete the task as efficiently as possible

Book Details

Language : English
Paperback : 332 pages [ 235mm x 191mm ]
Release Date : August 2010
ISBN : 1847198945
ISBN 13 : 9781847198945
Author(s) : Vladimir Vivien
Topics and Technologies : All Books, Application Development, Oracle Other, Cookbooks, Java, Open Source, Oracle, Web Development


Table of Contents

Preface
Chapter 1: Getting Started with JavaFX
Chapter 2: Creating JavaFX Applications
Chapter 3: Transformations, Animations, and Effects
Chapter 4: Components and Skinning
Chapter 5: JavaFX Media
Chapter 6: Working with Data
Chapter 7: Deployment and Integration
Chapter 8: The JavaFX Production Suite
Appendin A: Mobile JavaFX
Appendin B: JavaFX Composer
Appendin C: JavaFX Products and Frameworks
Appendin D: Best Practices for Development
Appendin E: Best Practices for Deployment
Index
  • Chapter 1: Getting Started with JavaFX
    • Introduction
    • 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
  • Chapter 2: Creating JavaFX Applications
    • Introduction
    • 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
  • Chapter 3: Transformations, Animations, and Effects
    • Introduction
    • 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
  • Chapter 4: Components and Skinning
    • Introduction
    • 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
  • Chapter 5: JavaFX Media
    • Introduction
    • 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
  • Chapter 6: Working with Data
    • Introduction
    • 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
  • Chapter 7: Deployment and Integration
    • Introduction
    • 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
  • Chapter 8: The JavaFX Production Suite
    • Introduction
    • 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

Vladimir Vivien

Vladimir Vivien is a software engineer living in the United States. Past and current experiences include development in Java and .Net for industries including publishing, financial, and healthcare where he worked with a number of varied technologies including user-facing GUI frontends and backend mid-tiers. Vladimir enjoys taking part in open source projects and has contributed JmxBuilder to the Groovy project and is an author of other projects such as JmxLogger. Beside JavaFX, he has a wide range of technology interests including Java, OSGi, Scala, and anything else that runs on the JVM.

Sorry, we don't have any reviews for this title yet.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.


Errata

- 1 submitted: last submission 30 May 2012

Errata type: Others |

Under the heading Errata in the Preface
The third line reads:
By doing so, you can save other readers from would like to see. frustration and help us improve subsequent versions of this book.
It should read
By doing so, you can save other readers from frustration and help us improve subsequent versions of this book.

 

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

JavaFX 1.2 Application Development Cookbook +    Drupal 7 Module Development =
50% Off
the second eBook
Price for both: $34.95

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Dive into the JavaFX scripting language fundamentals by creating and declaring classes, functions, trigger variables, and more
  • Create complex graphical components with simplified declarative constructs and arrange these building blocks to create applications in JavaFX
  • Effortlessly make your objects visually appealing by applying cool effects
  • Quickly build an application that provides a high level of interactivity by using JavaFX GUI controls
  • Seamlessly play audio and video in several formats using built-in media components
  • Access data and manipulate data locally or remotely using tools that are available in JavaFX
  • Achieve data visualization using the newly added feature—JavaFX chart components
  • Make your applications available for easy access and use by implementing deployment options such as Java WebStart and applets available in JavaFX
  • Take advantage of runtime contexts to interact with the executing environment with integration tips and tricks

In Detail

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.

Get quick solutions to create modern rich Internet applications using the various JavaFX features ranging from JavaScript fundamentals to more complicated topics including visual controls, custom components, multimedia, animation, effects, web and data services, deployment practices, and much more 

Approach

This book is a comprehensive collection of recipes that elaborate on known use cases. You will find an organized step-by-step procedure to accomplish each task followed by detailed explanations to better understand how and why each step was undertaken, and many links to online references and other related sections in the book that supplement the subject in question. The book is written so that you can work through the recipes in order or go straight to the recipes that interest you; where a recipe depends on other recipes they are clearly referenced.

Who this book is for

If you are a Java developer, Rich Internet Application content developer, or graphic designer who wants to build RIAs featuring animations, videos, and other feature-rich content, this book is for you. Knowledge of Java, JavaScript, and JavaFX components is not essential, but will help you exploit this book to your advantage.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software