Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

JavaFX Essentials
JavaFX Essentials
JavaFX Essentials
Ebook439 pages2 hours

JavaFX Essentials

Rating: 4 out of 5 stars

4/5

()

Read preview

About this ebook

About This Book
  • 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
Who This Book Is For

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.

LanguageEnglish
Release dateJun 29, 2015
ISBN9781784393533
JavaFX Essentials

Related to JavaFX Essentials

Related ebooks

Internet & Web For You

View More

Related articles

Reviews for JavaFX Essentials

Rating: 4 out of 5 stars
4/5

1 rating0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    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 for more details.

    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

    Enjoying the preview?
    Page 1 of 1