Skip to main content


JavaFX For Dummies

Doug Lowe

ISBN: 978-1-118-38534-0 October 2014 432 Pages


Unleash the power of JavaFX for a wide range of devices

JavaFX For Dummies gives you access to an innovative software platform that allows you to create and deliver rich Internet applications that can run across a wide variety of connected devices. This accessible book highlights the most important features of this powerful graphics platform, giving you the tools to understand it quickly and easily! No experience with JavaFX? No problem. JavaFX For Dummies has been written especially for newbies and it also serves as a great reference resource for more experienced Java developers.

Author Doug Lowe has been writing programming books for decades, and he brings his experience and passion to this guide, sharing his expert approach to coding using JavaFX. The book shows you how to work with JavaFX controls, how to enhance your scenic design, and also offers advice on how to make a splash with your programs. Then, the author wraps it all up with extra recommendations and resources to guide you as you move forward.

  • Helps developers quickly learn to take advantage of JavaFX's lightweight, high-performance platform
  • Highlights essential JavaFX features for simple coding that can be rolled out across multiple devices
  • Instructs readers on methods for creating compelling, visually appealing applications
  • Includes recommendations and resources for honing your JavaFX skills

With JavaFX For Dummies, you'll be on your way to easier, more efficient coding for a variety of connected devices.

Introduction 1

About This Book 1

Foolish Assumptions 2

How This Book Is Organized 3

Part I: Getting Started with JavaFX 3

Part II: JavaFX Controls 3

Part III: Enhancing Your Scenic Design 3

Part IV: Making Your Programs Come Alive 4

Part V: The Part of Tens 4

Icons Used in This Book 4

Beyond the Book 5

Where to Go from Here 5

Part I: Getting Started with JavaFX 7

Chapter 1: Hello, JavaFX! 9

Chapter 2: Looking Closer at JavaFX Programming 31

Chapter 3: Handling Events 49

Chapter 4: Setting the Stage and Scene Layout 67

Chapter 5: Using Layout Panes to Arrange Your Scenes 93

Chapter 6: Getting Input from the User 117

Part II: JavaFX Controls 141

Chapter 7: Introducing the JavaFX Node Hierarchy 143

Chapter 8: Choosing from a List 155

Chapter 9: Working with Tables 185

Chapter 10: Making Menus 209

Part III: Enhancing Your Scenic Design 225

Chapter 11: More about Layout Panes for Precise Scene Design 227

Chapter 12: Skinning Your Application with CSS 255

Chapter 13: Drawing Shapes 267

Chapter 14: Adding Special Effects 289

Part IV: Making Your Programs Come Alive 307

Chapter 15: Using Properties to Create Dynamic Scenes 309

Chapter 16: Using Images and Media 327

Chapter 17: Animating Your Scenes 341

Chapter 18: Targeting Touch Devices 365

Part V: The Part of Tens 375

Chapter 19: Ten More JavaFX Controls 377

Chapter 20: Ten Steps to Building a 3D World 389

Index 407

Source Code for book examples