HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
Build Rich Applications that Run on the Desktop, the Web, Mobile Devices...Anywhere!
Using JavaFX, developers and graphic designers can work together to build robust, immersive applications and deploy them anywhere: on the desktop, on the Web, and on millions of Java-enabled mobile devices. JavaFX lets you maintain your existing graphics and seamlessly integrate them into Java applications. Plus, JavaFX Script is a declarative language that allows you to preserve your investment in the Java platform while allowing more creativity with JavaFX’s Rich Internet Application environment.
JavaFX™: Developing Rich Internet Applications brings together all the knowledge, techniques, and reusable code you need to quickly deliver production-quality solutions. Writing for both developers and designers, the authors explain how JavaFX simplifies and improves the RIA development process, and they show how to make the most of its ready-built components and frameworks.
JavaFX™ covers everything from data integration to multimedia, special effects to REST. The authors present a full chapter of code recipes and a complete case study application. This book’s wide-ranging content includes
The Java™ Series is supported, endorsed, and authored by the creators of the Java technology at Sun Microsystems, Inc. It is the official place to go for complete, expert, and definitive information on Java technology. The books in this Series provide the inside information you need to build effective, robust, and portable applications and applets. The Series is an indispensable resource for anyone targeting the Java platform.
Bindstorming and JavaFX Performance
Node Count and JavaFX Performance
Registering Multiple Actions (or Handlers) in JavaFX
Please visit the author's site at jfxbook.com.
Download the sample pages (includes Chapter 3 and Index)
Foreword xiii
Preface xv
Acknowledgments xxi
About the Authors xxiii
Chapter 1: Getting Started 1
Installing the JavaFX Platform 1
Setting Up NetBeans IDE for JavaFX 1.2 2
Command Line 9
Eclipse 13
Chapter Summary 18
Chapter 2: JavaFX for the Graphic Designer 19
Graphic Design and JavaFX 19
JavaFX Production Suite 20
Adobe Illustrator CS3 20
Adobe Photoshop CS3 26
Scalable Vector Graphics 30
Chapter Summary 31
Chapter 3: JavaFX Primer 33
JavaFX Script Basics 33
JavaFX Script Language 34
Class Declaration 36
Mixin Classes 38
Object Literals 40
Variables 41
Sequences 45
Functions 49
Strings 50
Expressions and Operators 55
Chapter Summary 64
Chapter 4: Synchronize Data Models–Binding and Triggers 65
Binding 65
Bidirectional Binding 77
Advanced Binding Topics 80
Triggers 85
Coming Features 91
Chapter Summary 92
Chapter 5: Create User Interfaces 93
User Interfaces 93
The Stage 93
The Scene 96
Nodes 105
Layout 108
Input Events 121
Text Display 125
Custom Controls 136
Shapes 140
Java Swing Extension 145
Chapter Summary 150
Chapter 6: Apply Special Effects 151
Effects 152
Chapter Summary 180
Chapter 7: Add Motion with JavaFX Animation 181
Computer Animation 181
Timelines 183
Key Frames 185
Interpolation 189
Path-Based Animation 199
Total Solar Eclipse Examples 205
Chapter Summary 218
Chapter 8: Include Multimedia 219
Multimedia 219
Images 219
Media–Audio and Video 225
Chapter Summary 234
Chapter 9: Add JavaFX to Web Pages with Applets 235
JavaFX and Applets 235
Deploying a JavaFX Application as an Applet 235
Java Web Start 256
Chapter Summary 258
Chapter 10: Create RESTful Applications 259
What Is REST? 259
JavaScript Object Notation (JSON) 264
JavaFX and REST 266
JavaFX and XML 277
Chapter Summary 278
Chapter 11: JavaFX and Java Technology 279
Classes 280
Java Objects 281
Function Parameter and Return Mapping 284
Java Scripting 293
JavaFX Reflection 299
Chapter Summary 302
Chapter 12: JavaFX Code Recipes 303
JavaFX and JavaBeans 303
Server Call Back 307
Node Effects–Fader and Magnifier 311
Wizard Framework 319
Progress Bar 325
Slider 327
Matrix 330
Chapter Summary 332
Chapter 13: Sudoku Application 333
How to Access the JavaFX Sudoku Application 334
The Interface 334
Source for the Sudoku Application 336
The Overall Design 338
Interfacing with Java Components 342
Chapter Summary 346
Index 347