Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.
This is the Rough Cut version of the printed book.
JavaFX is a state-of-the-art graphics toolkit that is now built into Java and can be easily integrated with the NetBeans Platform. With JavaFX, you can create advanced user interfaces, manipulate media, generate graphical effects and animations, and much more. The NetBeans Platform provides a framework for building robust, modular applications with long life expectancies. Together, JavaFX and the NetBeans Platform provide the basis for creating visually appealing, industrial-strength applications.
Focusing on JavaFX as the front end for rich client applications, this guide’s examples cover JavaFX 8 with the NetBeans Platform, NetBeans IDE, and Java 8. Gail and Paul Anderson fully explain JavaFX and its relationship with the NetBeans Platform architecture, and systematically show Java developers how to use them together effectively. Each concept and technique is supported by clearly written code examples, proven through extensive classroom teaching.
Coverage includes
Foreword xvii
Preface xix
About the Authors xxiii
Chapter 1: A Tour of the NetBeans Platform 1
What You Will Learn 1
1.1 Background Basics 2
1.2 The NetBeans Platform: The Big Picture 3
1.3 FamilyTreeApp Reference Application 10
1.4 Documentation 17
1.5 How to Get Java and the NetBeans Platform Software 17
1.6 Example Software Bundle 18
1.7 Key Point Summary 18
Chapter 2: Background Basics 19
What You Will Learn 20
2.1 JavaBeans and Properties 20
2.2 Lambda Expressions 38
2.3 Swing Basics 40
2.4 Improving the User Experience 63
2.5 Concurrency and Thread Safety 68
2.6 Swing Background Tasks 73
2.7 Key Point Summary 80
Chapter 3: Introduction to JavaFX 83
What You Will Learn 83
3.1 What Is JavaFX? 84
3.2 Building JavaFX Programs 87
3.3 JavaFX Properties 103
3.4 Putting It All Together 120
3.5 Key Point Summary 128
Chapter 4: Working with JavaFX 131
What You Will Learn 131
4.1 Creating JavaFX Properties 132
4.2 Using JavaFX Properties in a JavaFX Application 139
4.3 Observable Collections 148
4.4 JavaFX Applications 153
4.5 Concurrency and Thread Safety 172
4.6 JavaFX Background Tasks 176
4.7 Monitoring Background Tasks 182
4.8 Key Point Summary 195
Chapter 5: A Taste of Modularity 199
What You Will Learn 199
5.1 Modular Architecture 199
5.2 Creating a NetBeans Platform Application 203
5.3 Creating Modules 208
5.4 Configuring a Module with Public Packages 211
5.5 Registering a Service Provider 214
5.6 Configuring a Window for Selection 219
5.7 Configuring a Window wi
