Essential JavaFX [NOOK Book]

Overview


A complete introduction for beginners to Sun's powerful JavaFX scripting language

JavaFX is a scripting language which provides built-in properties for manipulating objects within a 2D coordinate system. A competing technology to Microsoft's Silverlight, JavaFX provides the tools to fill and pen stroke colors, and create special effects, shapes and lines. It also manipulates images and play videos and sound and defines animations that affect objects over time. This complete ...

See more details below
Essential JavaFX

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac

Want a NOOK? Explore Now

NOOK Book (eBook)
$17.99
BN.com price
(Save 43%)$31.99 List Price

Overview


A complete introduction for beginners to Sun's powerful JavaFX scripting language

JavaFX is a scripting language which provides built-in properties for manipulating objects within a 2D coordinate system. A competing technology to Microsoft's Silverlight, JavaFX provides the tools to fill and pen stroke colors, and create special effects, shapes and lines. It also manipulates images and play videos and sound and defines animations that affect objects over time. This complete introduction for any level doesn't bury you with details. It starts quickly with an introduction to the power of JavaFX key features--scene node graphs, nodes as components, the coordinate system, layout options, colors and gradients, custom classes with inheritance, animation, binding, and event handlers. It then shows step-by-step how these features could be used in a real JavaFX application and will help an application look professionally designed. Commissioned by JavaFX product team and reviewed by renowned Java author, Brian Goetz, this guide is intended as the first and most accessible book for people new to JavaFX.

  • The Andersons are working directly with the JavaFX team at Sun for a complete and authoritative guide
  • Gets you started on building rich Web apps quickly without having to sort through unnecessary details or search the Web for answers
  • Focuses on most useful features and shows how to build apps that tap the full potential of JavaFX
Read More Show Less

Product Details

  • ISBN-13: 9780137044313
  • Publisher: Pearson Education
  • Publication date: 6/15/2009
  • Sold by: Barnes & Noble
  • Format: eBook
  • Edition number: 1
  • Pages: 360
  • Sales rank: 1,113,450
  • File size: 20 MB
  • Note: This product may take a few minutes to download.

Meet the Author

Gail Anderson is a software specialist and author who has written numerous books on leading-edge Java technologies. Gail is a founding member of the Anderson Software Group, Inc., a leading provider of software development training courses.

Paul Anderson is a founding member of the Anderson Software Group, Inc., and a leading trainer in software technologies, such as Java, C++, C#, Perl, UML, and Linux. Paul has taught courses for thousands of developers and specializes in making software engineering fun and understandable.

Read More Show Less

Table of Contents

Preface xiii

Acknowledgments xvii

Chapter 1 Getting Started with JavaFX 1

What You Will Learn 1

1.1 What Is JavaFX? 1

1.2 The JavaFX Bundle 2
1.3 Where to Get JavaFX 3

1.4 Using JavaFX on the Command Line 11

Chapter 2 A Taste of JavaFX 13

What You Will Learn 13

2.1 Introducing JavaFX 13

2.2 Project GuitarTuner 14

2.3 JavaFX Program Structure 17
2.4 Key JavaFX Features 19

2.5 Making Things Look Good 26 Gradients 26

2.6 Doing Things 31

2.7 Source Code for Project GuitarTuner 36

Chapter 3 JavaFX Language 43

What You Will Learn 43

3.1 Variables and Types 43

3.2 Operators 47

3.3 Expressions 50

3.4 Sequences 54 Sequence Literals 54 Printing

3.5 Functions 61 Defining Functions 61 Passing

3.6 Classes and Objects 67 Classes 67 Object

3.7 Inheritance 74

3.8 Triggers 82 On Replace with Variables 82 On

3.9 Script Files and Packages 85 Variable Scope 85

3.10 Exception Handling 89
3.11 JavaFX Keywords 92

Chapter 4 Graphical Objects 93

What You Will Learn 93

4.1 Setting the Stage 93
4.2 Shapes 101

4.3 Paths 114

4.4 Layout Nodes 117

4.5 Geometry 118

Chapter 5 User Interface Components 125

What You Will Learn 125

5.1 JavaFX UI Controls 125

5.2 Swing Components 128
5.3 Swing Example 136 Pizzas Are Circles 136

5.4 Creating Skinnable Components 143

Chapter 6 Anatomy of a JavaFX Application 159

What You Will Learn 159

6.1 Project Piano 159

6.2 PianoKey Components 161

6.3 Building the Keyboard 172

6.4 SwingButtons and Animation 175

6.5 Adding Help and Improving Visual Effects 180

6.6 Source Code for Project Piano 186

Chapter 7 Animation 197

What You Will Learn 197

7.1 Timelines 198 Animation Basics—Moving an

7.2 Timeline Actions 210

7.3 Transitions 217

7.4 Path Animation 225

7.5 Chutes and Ladders 229

Chapter 8 Working with Images 241

8.1 Using Image 241

8.2 Using ImageView 244
8.3 Building a Wall of Photos 256

8.4 Mouse Dragging 262

8.5 Animated Photo Carousel 266

Chapter 9 Web Services 277

What You Will Learn 277

9.1 JavaFK Pull Parsers 277

9.2 JavaFX HttpRequest 288

9.3 Flickr: Interesting Photos 293

9.4 Flickr: Searching with Tags 300

9.5 Flickr: Getting User Photos 304

Chapter 10 Mobile Applications 307

What You Will Learn 307

10.1 JavaFX Mobile—What Does It Mean? 307

10.2 Making a JavaFX Application Mobile Ready

10.3 Mobile-Only Applications 323
Grouping Elements Together 325

Index 329

Read More Show Less

Customer Reviews

Average Rating 3
( 1 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(1)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing 1 – 2 of 1 Customer Reviews
  • Anonymous

    Posted December 19, 2010

    No text was provided for this review.

  • Anonymous

    Posted December 7, 2009

    No text was provided for this review.

Sort by: Showing 1 – 2 of 1 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)