JavaFX Essentials
4/5
()
About this ebook
- Develop amazing gestures –based applications and an interactive JavaFX application powered by leap motion devices
- Get in touch with the right tools to rapidly develop your JavaFX application and give you essential hands-on experience with JavaFX 8
- A step-by-step guide with examples to help you develop applications
If you are a Java developer, an experienced Java Swing, Flash/Flex, SWT, or web developer looking to take your client-side applications to the next level, this book is for you.
Related to JavaFX Essentials
Related ebooks
Learn Java 12 Programming: A step-by-step guide to learning essential concepts in Java SE 10, 11, and 12 Rating: 0 out of 5 stars0 ratingsJava EE 7 Development with NetBeans 8 Rating: 5 out of 5 stars5/5Digital Java EE 7 Web Application Development Rating: 4 out of 5 stars4/5Learning Java Functional Programming Rating: 0 out of 5 stars0 ratingsTest-Driven Java Development Rating: 4 out of 5 stars4/5Learning Java by Building Android Games Rating: 0 out of 5 stars0 ratingsMastering JavaScript Design Patterns - Second Edition Rating: 5 out of 5 stars5/5Mastering Java EE Development with WildFly Rating: 0 out of 5 stars0 ratingsMastering JavaScript Rating: 4 out of 5 stars4/5Getting Started with React Rating: 0 out of 5 stars0 ratingsNode.js By Example Rating: 2 out of 5 stars2/5Mastering JavaScript Object-Oriented Programming Rating: 0 out of 5 stars0 ratingsReact.js Essentials Rating: 4 out of 5 stars4/5Java EE 7 First Look Rating: 0 out of 5 stars0 ratingsLearning Reactive Programming with Java 8 Rating: 0 out of 5 stars0 ratingsModern JavaScript Applications Rating: 0 out of 5 stars0 ratingsC# Programming Cookbook Rating: 0 out of 5 stars0 ratingsMastering Spring 5.0 Rating: 5 out of 5 stars5/5Mastering JavaScript Promises Rating: 1 out of 5 stars1/5Mastering Windows Presentation Foundation Rating: 4 out of 5 stars4/5JavaScript Unlocked Rating: 5 out of 5 stars5/5JavaFX 1.2 Application Development Cookbook Rating: 0 out of 5 stars0 ratingsJava 9 Programming By Example Rating: 4 out of 5 stars4/5Django Admin Cookbook Rating: 0 out of 5 stars0 ratings100 Recipes for Programming Java Rating: 5 out of 5 stars5/5Java Persistence with Hibernate Rating: 4 out of 5 stars4/5Object-Oriented JavaScript - Third Edition Rating: 4 out of 5 stars4/5OCP Oracle Certified Professional Java SE 11 Developer Practice Tests: Exam 1Z0-819 and Upgrade Exam 1Z0-817 Rating: 5 out of 5 stars5/5The Java Workshop: Learn object-oriented programming and kickstart your career in software development Rating: 0 out of 5 stars0 ratings
Internet & Web For You
The $1,000,000 Web Designer Guide: A Practical Guide for Wealth and Freedom as an Online Freelancer Rating: 5 out of 5 stars5/5The Mega Box: The Ultimate Guide to the Best Free Resources on the Internet Rating: 4 out of 5 stars4/5Cybersecurity For Dummies Rating: 4 out of 5 stars4/5More Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5Coding For Dummies Rating: 5 out of 5 stars5/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5Coding All-in-One For Dummies Rating: 4 out of 5 stars4/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsThe Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5How To Start A Podcast Rating: 4 out of 5 stars4/5The Designer's Web Handbook: What You Need to Know to Create for the Web Rating: 0 out of 5 stars0 ratingsSocial Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Wireless Hacking 101 Rating: 4 out of 5 stars4/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5Stop Asking Questions: How to Lead High-Impact Interviews and Learn Anything from Anyone Rating: 5 out of 5 stars5/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Learn JavaScript in 24 Hours Rating: 3 out of 5 stars3/5200+ Ways to Protect Your Privacy: Simple Ways to Prevent Hacks and Protect Your Privacy--On and Offline Rating: 0 out of 5 stars0 ratingsHow To Start A Profitable Authority Blog In Under One Hour Rating: 5 out of 5 stars5/5How To Make Money Blogging: How I Replaced My Day-Job With My Blog and How You Can Start A Blog Today Rating: 4 out of 5 stars4/5
Reviews for JavaFX Essentials
1 rating0 reviews
Book preview
JavaFX Essentials - Mohamed Taman
Index
JavaFX Essentials
JavaFX Essentials
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: June 2015
Production reference: 1250615
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-802-6
www.packtpub.com
Credits
Author
Mohamed Taman
Reviewers
Sergey Grinev
José Pereda
Commissioning Editor
Amarabha Banerjee
Acquisition Editor
Aaron Lazar
Content Development Editor
Sumeet Sawant
Technical Editor
Naveenkumar Jain
Copy Editors
Roshni Banerjee
Aditya Nair
Adithi Shetty
Project Coordinator
Shweta Birwatkar
Proofreader
Safis Editing
Indexer
Hemangini Bari
Graphics
Sheetal Aute
Production Coordinator
Nitesh Thakur
Cover Work
Nitesh Thakur
About the Author
Mohamed Taman, chief of architects and software development manager at e-finance, lives in Cairo, Egypt. He graduated in electrical engineering from Faculty of Engineering, Cairo University. He is an experienced Java developer who has worked on the Web, mobile, and IoT for industries, including finance, banking, tourism, government, and healthcare. Before that, he worked with Pfizer, Intercom Enterprise (a Gold IBM partner), Silicon Expert, and Oracle using varied technologies, such as user-facing GUI frontends, backends, mid-tiers, and integrations of large-scale systems.
He enjoys speaking at many conferences evangelizing Java standards and his experience worldwide, as he is a strong Java community member and a Java Champion since 2015.
In addition, Mohamed is a member of Adopts Java EE 8, OpenJDK, and JavaFX programs. He was an executive member of Java Community Process Organisation, being the first African to join its board.
He is also a member of the expert group JSR 354, 363, and 373. He is also the leader of EGJUG and MoroccoJUG member, a board member of Oracle Egypt Architects Club. He won the 2014 Duke’s choice and 11th annual JCP adopt 2013 awards.
You can read more about the author at http://about.me/mohamedtaman.
About the Reviewers
Sergey Grinev is an experienced software development and QA engineer focused on building reliable quality processes for Java platforms. He started to work in this area during his employment with Oracle, where he was responsible for JavaFX quality. Since the past few years, he has been working for Azul Systems on the quality of their custom JVMs.
Also, Sergey enjoys teaching people, presenting on various Java conferences, giving lessons, and answering Java-related questions on http://stackoverflow.com.
He graduated from St. Petersburg State University and currently resides in St. Petersburg, Russia.
José Pereda has done his PhD in structural engineering and works as an assistant professor in the School of Industrial Engineering at the University of Valladolid in Spain. His passion lies in applying programming to solve real problems. Working with Java since 1999, he is now a JavaFX advocate, developing commercial applications and open source projects (JFXtras, FXyz, https://github.com/jperedadnr), coauthoring a JavaFX book (JavaFX 8 Introduction by Example), blogging (http://jperedadnr.blogspot.com.es/), tweeting (@JPeredaDnr), and speaking at conferences (JavaOne, JAX, Jfokus, JavaLand, and so on). José lives with his wife and kids in Valladolid, Spain.
www.PacktPub.com
Support files, eBooks, discount offers, and more
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.
Why subscribe?
Fully searchable across every book published by Packt
Copy-and-paste, print, and bookmark content
On-demand and accessible via a web browser
Free access for Packt account holders
If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view nine entirely free books. Simply use your login credentials for immediate access.
Preface
This book, as its title (JavaFX 8 Essentials) suggests, is a pragmatic book that provides you with a robust set of essential skills that will guide you to become confident enough to rapidly build high-performance JavaFX 8 client applications. These applications take advantage of modern GPUs through hardware-accelerated graphics while delivering a compelling, complex, and fancy rich-client GUI for your customer, which will impress them quite a bit.
Learning the JavaFX 8 essentials is the first step to plunging into creating applications that most importantly run on any platform, from the desktop, Web, mobile, tablets, to embedded devices such as Arduino, Raspberry Pi, and multi-core development. Following Java's Write once, run anywhere paradigm, JavaFX also preserves the same. Because JavaFX 8 is written totally from scratch in the Java language, you will feel at home.
Most of the chapters are a fast-paced guide that will help you get a head start on Java GUI programming, leveraging JavaFX 8 and deploying and running on any platform.
While working through the book examples, you will find code is written with JavaFX 8 on Java 8 (yes, Java SE 8) so that the new APIs and language enhancements will help you become a more productive developer. Having said this, it will be handy (and I encourage you to go for this) to explore all of the new Java 8 capabilities.
Finally, yet importantly, you will be able to develop amazing touch-less interactive motion applications with JavaFX that interact with Leap motion devices.
What this book covers
Chapter 1, Getting Started with JavaFX 8, is an introduction to JavaFX 8. It discusses JavaFX 8 as a technology, why you should care about it, its history, core features, and where it can be used.
So it is time to get ready with the right tools and go through the necessary steps to install JavaFX 8 and its supporting development tools. Learn about additional tools that will increase reader productivity in this chapter. As a final verification that we are on the right track, we are going to close the chapter with a simple Hello JavaFX application.
Chapter 2, JavaFX 8 Essentials and Creating a Custom UI, discusses how there is nothing more frustrating than receiving complicated advice as a solution to a problem. Because of this, I have always made it a point to focus on the essentials. In order to render graphics on the JavaFX scene, you will need a basic application, scene, canvas, shapes, text, controls, and colors.
Also, you will learn about JavaFX 8 essential application structures that serve as a backbone to any future application. And finally, we will also explore some Java SE 8 features (such as Lambda, Streams, JavaFX Properties, and so on) to help increase code readability, quality, and productivity.
After getting hands-on experience in creating a structured JavaFX 8 application, wouldn't it be nice if you could change the UI of your application without altering its functionality? In this chapter, you will learn about theming and how to customize applications by applying various themes (look and feel) and the fundamentals of JavaFX CSS styling.
You will use Scene Builder to create and define UI screens graphically and save them as a JavaFX FXML-formatted file. Finally, you will learn about creating custom controls.
Chapter 3, Developing a JavaFX Desktop and Web Application, covers on how to develop a compelling desktop and Web application that takes advantage of multi-core hardware accelerated GPUs to deliver a high performance UI-based application with an amazing appearance.
As JavaFX is totally written from the ground up in Java, some Java SE 8 built-in core libraries will be used to power our application. Also, you will learn how to package your application as a standalone application to be launched and