0%

Book Description

JavaFX 2.0: Introduction by Example provides a quick start to programming the JavaFX 2.0 platform. JavaFX 2.0 provides a rich set of APIs for use in creating graphically exciting client applications written solely in Java. You get a large set of customizable components that can be skinned using CSS techniques that you already know from doing web development. The platform even includes a web rendering engine enabling you to mix HTML content into your applications. Hardware acceleration means that your applications are fast and snappy, taking full advantage of modern graphics processing support at the hardware level. JavaFX 2.0 opens the door to business applications that look good, are fun to use, that take advantage of the medium to present data of all types—text, audio, video, etc.—in ways that engage the user and lead to increased productivity.

Getting started with JavaFX 2.0 is surprisingly easy. You already have the Java skills. Very likely you know enough of CSS to get by. All that's left is to get a leg up on the API, and that's where JavaFX 2.0: Introduction by Example can help. In this short book, author Carl Dea takes you through a series of engaging, fun-to-work examples that bring you up to speed on the major facets of the platform. Begin with the fundamentals of installing the software and creating a simple interface. Move in progressive steps through the process of developing a working dialog box for an application. Then let the fun begin as you explore images and animations, audio and video, and finally learn to embed JavaFX applications in a web page as well as embedding HTML5 content within an application. At the end of this book you'll have a good grasp of what JavaFX is all about, and you'll be ready to begin your journey towards mastery of the platform.

Entirely example-based

Focused on practical applications

Full of working code for you to adapt and extend

What you'll learn

Install JavaFX 2.0 and configure your environment

Create applcations menus and dialog boxes

Design forms for data entry

Work with images and animations

Embed audio and video into your applications

Deploy JavaFX applications in a browser

Who this book is for

JavaFX 2.0: Introduction by Example is aimed at Java programmers wanting to learn the JavaFX 2.0 platform for designing graphic- and media-rich client applications for the enterprise. Readers should be familiar with Java, and preferably also with the NetBeans Integrated Development Environment.

Table of Contents

  1. Title
  2. Contents at a Glance
  3. Contents
  4. About the Author
  5. About the Technical Reviewer
  6. Acknowledgments
  7. Introduction
    1. Some History
    2. Approach in This Book
    3. Who This Book Is For
    4. How This Book Is Structured
    5. Downloading the Code
    6. References
  8. Chapter 1: JavaFX Fundamentals
    1. 1-1. Installing Required Software
    2. 1-2. Creating a Simple User Interface
    3. 1-3: Drawing Text
    4. 1-4: Changing Text Fonts
    5. 1-5. Creating Shapes
    6. 1-6. Assigning Colors to Objects
    7. 1-7. Creating Menus
    8. 1-8. Adding Components to a Layout
    9. 1-9. Generating Borders
    10. 1-10. Binding Expressions
    11. 1-11. Creating and Working with Observable Lists
    12. 1-12. Generating a Background Process
    13. 1-13. Associating Keyboard Sequences to Applications
    14. 1-14. Creating and Working with Tables
    15. 1-15. Organizing UI with Split Views
    16. 1-16. Adding Tabs to the UI
    17. 1-17. Developing a Dialog Box
  9. Chapter 2: Graphics with JavaFX
    1. 2-1. Creating Images
    2. 2-2. Generating an Animation
    3. 2-3. Animating Shapes Along a Path
    4. 2-4. Manipulating Layout via Grids
    5. 2-5. Enhancing with CSS
  10. Chapter 3: Media with JavaFX
    1. 3-1. Playing Audio
    2. 3-2. Playing Video
    3. 3-3. Controlling Media Actions and Events
    4. 3-4. Marking a Position in a Video
    5. 3-5. Synchronizing Animation and Media
  11. Chapter 4: JavaFX on the Web
    1. 4-1. Embedding JavaFX Applications in a Web Page
    2. 4-2. Displaying HTML5 Content
    3. 4-3. Manipulating HTML5 Content with Java Code
    4. 4-4. Responding to HTML Events
    5. 4-5. Displaying Content from the Database
  12. Index
3.142.237.172