Pro JavaFX 2 a definitive guide to rich clients with Java technology
In Pro JavaFX 2: A Definitive Guide to Rich Clients with Java Technology, Jim Weaver, Weiqi Gao, Stephen Chin, Dean Iverson, and Johan Vos show you how you can use the JavaFX platform to create rich-client Java applications. You'll see how JavaFX provides a powerful Java-based UI platform capab...
Otros Autores: | , |
---|---|
Formato: | Libro electrónico |
Idioma: | Inglés |
Publicado: |
New York :
Apress
c2012.
|
Edición: | 1st ed. 2012. |
Colección: | Expert's voice in Java.
|
Materias: | |
Ver en Biblioteca Universitat Ramon Llull: | https://discovery.url.edu/permalink/34CSUC_URL/1im36ta/alma991009628599506719 |
Tabla de Contenidos:
- Title Page; Copyright Page; Contents at a Glance; Table of Contents; Foreword; About the Authors; About the Technical Reviewer; Acknowledgments; Chapter 1: Getting a Jump Start in JavaFX; JavaFX Can't Bring Rich-Client Java Back by Itself; A Brief History of JavaFX; Going to the Source: Oracle's JavaFX Web Site; Accessing the JavaFX SDK API; Obtaining the JavaFX SDK; Other Available Tools; Developing Your First JavaFX Program: "Hello Earthrise"; Compiling and Running from the Command-Line; Understanding the Hello Earthrise Program; Building and Running the Program with NetBeans
- Developing Your Second JavaFX Program: "More Cowbell!"Building and Running the Audio Configuration Program; The Behavior of the Audio Configuration Program; Understanding the Audio Configuration Program; Creating an Instance of the Model, and the Magic of Binding; Colors and Gradients; The Model Class for the Audio Configuration Example; Defining Change Listeners in the Model class; Surveying JavaFX Features; Summary; Resources; Chapter 2: Creating a User Interface in JavaFX; Introduction to Node-Centric UIs; Setting the Stage; Understanding the Stage Class
- Using the Stage Class: The StageCoach ExampleUnderstanding the StageCoach Program; Obtaining Program Arguments; Setting the Style of the Stage; Controlling Whether a Stage Is Resizable; Making a Stage Full Screen; Working with the Bounds of the Stage; Drawing Rounded Rectangles; Dragging the Stage on the Desktop When a Title Bar Isn't Available; Using UI Layout Containers; Ascertaining Whether the Stage Is in Focus; Controlling the Z-Order of the Stage; Closing the Stage and Detecting When It Is closed; Making a Scene; Using the Scene Class: The OnTheScene Example
- Understanding the OnTheScene ProgramPainting the Scene's Background; Populating the Scene with Nodes; Finding a Scene Node by ID; Accessing the Stage from the Scene; Inserting a Node into the Scene's Content Sequence; CSS Styling the Nodes in a Scene; Handling Input Events; Surveying Mouse and Keyboard Events and Handlers; Understanding the KeyEvent Class; Understanding the MouseEvent Class; Animating Nodes in the Scene; Using a Timeline for Animation; The Metronome1 Example; Understanding the Metronome1 program; Understanding the Timeline Class; Inserting Key Frames into the Timeline
- Controlling and Monitoring the TimelineUsing the Transition Classes for Animation; The MetronomeTransition Example; The Behavior of the MetronomeTransition Program; Understanding the MetronomeTransition Program; Using the TranslateTransition Class; Controlling and Monitoring the Transition; The MetronomePathTransition Example; The Behavior of the MetronomePathTransition Program; Understanding the MetronomePathTransition Program; Using the PathTransition Class; Drawing an Ellipse; The Zen of Node Collision Detection; Understanding the ZenPong Program; Using the KeyFrame Action Event Handler
- Using the Node intersects() Method to Detect Collisions