Skip to:Content
|
Bottom
Cover image for JavaFX : a beginner’s guide
Title:
JavaFX : a beginner’s guide
Personal Author:
Series:
Oracle Press
Publication Information:
New York : McGraw-Hill, 2011
Physical Description:
xv, 300 p. : ill. ; 24 cm.
ISBN:
9780071742412
General Note:
Includes index

Available:*

Library
Item Barcode
Call Number
Material Type
Item Category 1
Status
Searching...
30000010254157 QA76.73.J38 D56 2011 Open Access Book Book
Searching...

On Order

Summary

Summary

This practical introductory guide teaches you how to build rich interactive content with JavaFX.


Author Notes

J. F. DiMarzio has been a professional Java developer for more than nine years and a professional web developer for more than 15. He now actively works with Java and JavaFX to create stunning user experiences for his clients. DiMarzio has written seven books, including Android: A Programmer's Guide and runs Technical Difficulties, a Java, JavaFX, JQuery, and Android blog at jfdimarzio.com.


Table of Contents

Acknowledgmentsp. xiii
Introductionp. xv
1 Introduction to JavaFXp. 1
What Is JavaFX?p. 2
What Is Needed for JavaFX Development?p. 2
Required Skills and Knowledgep. 3
Required Softwarep. 4
Downloading and Installing the Required Softwarep. 4
NetBeansp. 4
Try This: Configure Your NetBeansp. 7
Chapter 1 Self Testp. 8
2 Setting the Scenep. 9
Creating a New JavaFX Projectp. 10
The Empty JavaFX Projectp. 12
Adding Working Files to Your Projectp. 15
Exploring the Empty Project in NetBeansp. 15
Working with the Script Filep. 19
The Commentsp. 19
The package Statementp. 20
Your First Stagep. 21
Inserting the Stage Snippetp. 21
A JavaFX Script Primerp. 23
Name-Value Pairsp. 23
Compiling Your JavaFX Scriptp. 24
Chapter 2 Self Testp. 25
3 Hello Worldp. 27
Writing to the Screenp. 28
Adding Some Descriptive Commentsp. 30
Adding the Stage and Scenep. 30
Adding Some Textp. 31
Try This: Create a TV Run Configurationp. 40
Adding a Functionp. 40
Using bind with a Text Nodep. 46
Chapter 3 Self Testp. 50
4 Creating Shapesp. 51
Drawing Shapesp. 52
Before You Beginp. 52
Lines and Polylinesp. 53
Rectanglesp. 61
Polygonsp. 64
Arcsp. 65
Circles and Ellipsesp. 68
Try This: Create Multiple Shapesp. 70
Chapter 4 Self Testp. 70
5 Using Colors and Gradientsp. 71
Using Colorp. 72
Predefined Colorsp. 72
Mixing Colorsp. 74
Using Gradientsp. 77
LinearGradientsp. 77
RadialGradientsp. 81
Try This: Create a Custom Gradientp. 82
Chapter 5 Self Testp. 83
6 Using Imagesp. 85
The Image View Nodep. 86
The Image Classp. 87
JavaFX Production Suitep. 91
Using an FXZ File in JavaFXp. 96
Try This: Working with Different Image Typesp. 99
Chapter 6 Self Testp. 99
7 Applying Effects and Transformationsp. 101
Effectsp. 106
Bloomp. 106
Color Adjustp. 109
GaussianBlurp. 110
Glowp. 113
DropShadowp. 116
InvertMaskp. 119
Lightingp. 120
SepiaTonep. 123
Transformationsp. 125
XY Transformationsp. 125
Rotationp. 127
PerspectiveTransformp. 128
Try This: Combining Multiple Effectsp. 129
Chapter 7 Self Testp. 130
8 Basic Animationp. 131
Timelinesp. 133
Animating Along a Pathp. 139
Try This: Create a Path Animationp. 145
Chapter 8 Self Testp. 145
9 Using Eventsp. 147
What Are Events?p. 148
Mouse Eventsp. 148
Key Eventsp. 157
Chapter 9 Self Testp. 161
10 Give It Some Swingp. 163
What Is Swing?p. 164
Swing Componentsp. 165
SwingButtonp. 166
SwingCheckBoxp. 173
SwingComboBox and SwingComboBoxItemp. 176
Try This: Create an Application with Swingp. 180
Chapter 10 Self Testp. 181
11 Custom Nodes and Overridingp. 183
Overriding a Nodep. 184
Creating a RoundButtonp. 186
Creating a Custom Nodep. 192
Try This: Create Your Own Shapesp. 199
Chapter 11 Self Testp. 199
12 Embedded Video and Musicp. 201
Playing Videop. 203
Creating a Play/Pause Buttonp. 207
Creating a Progress Indicatorp. 211
Playing Audiop. 216
Chapter 12 Self Testp. 218
13 Using JavaFX Layoutsp. 219
The HBoxp. 221
The VBoxp. 225
Nested Layoutsp. 227
Try This: Using Other Layoutsp. 230
Chapter 13 Self Testp. 231
14 Style Your JavaFX with CSSp. 233
Adding a Style Sheet to Your Packagesp. 235
Creating a Stylep. 238
Using Your Stylesp. 239
Creating Independent Style Classesp. 241
Try This: Experimenting with Stylesp. 244
Chapter 14 Self Testp. 244
A Deploying JavaFXp. 247
Deploying JavaFXp. 248
B Node Property Referencep. 253
Node Propertiesp. 254
Mouse Eventsp. 256
Key Codesp. 258
MediaPlayer Propertiesp. 265
C JavaFX Command-Line Argumentsp. 267
Command-Line Environmentp. 268
javafxcp. 269
javafxp. 274
D Answers to Self Testsp. 279
Chapter 1p. 280
Chapter 2p. 280
Chapter 3p. 281
Chapter 4p. 282
Chapter 5p. 283
Chapter 6p. 283
Chapter 7p. 284
Chapter 8p. 285
Chapter 9p. 286
Chapter 10p. 286
Chapter 11p. 287
Chapter 12p. 288
Chapter 13p. 289
Chapter 14p. 290
Indexp. 291
Go to:Top of Page