ENGLISH

Mastering JavaFX 10 - Build Advanced and Visually Stunning Java Applications ... [true pdf]

Book information

Publisher
Packt
Year
2018
ISBN
9781788293822
Language
english
Format
PDF
Filesize
7 MB (7774137 bytes)
Edition
1
Pages
270\258
Time added
2020-04-09 17:05:17

Description

Key Features ------------ Leverage advanced GUI programming techniques using the latest JavaFX 10 framework. Create dynamic content using the animation API and work with different application layers Create and customize plugins and use them efficiently in different applications --- Book Description ---------------- JavaFX 10 is used to create media-rich client applications. This book takes you on a journey to use JavaFX 10 to build applications that display information in a high-performance, modern user interface featuring audio, video, graphics, and animation. Mastering JavaFX 10 begins by introducing you to the JavaFX API. You will understand the steps involved in setting up your development environment and build the necessary dependencies. This is followed by exploring how to work with the assets, modules, and APIs of JavaFX. This book is filled with practical examples to guide you through the major features of JavaFX 10. In addition to this, you will acquire a practical understanding of JavaFX custom animations, merging different application layers smoothly, and creating a user-friendly GUI with ease. By the end of the book, you will be able to create a complete, feature-rich Java graphical application using JavaFX. --- What you will learn ------------------- Construct and customize JavaFX windows Manage UI elements and arrange them on the Scene Explore the Bindings API and use it to coordinate various UI elements Use FXML to design amazing FX applications Write and manage CSS to style your applications Add audio and video to your projects Prepare your application to be launched on the target platform --- Who this book is for -------------------- If you’re a Java developer who wants to upgrade to the latest version of JavaFX to create stunning, feature-rich graphical applications, this book is for you. Some basic knowledge of Java programming is necessary to get the most out of this book. prior JavaFX knowledge will help but is not mandatory. Cover Title Page Copyright and Credits Dedication www.PacktPub.com Contributors Table of Contents Preface Chapter 1: Stages, Scenes, and Layout Application and JavaFX subsystems Components of the JavaFX toolkit Glass toolkit Prism and Quantum Toolkit Media WebView/WebEngine Working with JavaFX Application Thread Application class Using the Application.launch() method Managing command-line parameters Closing the JavaFX application Stage – a JavaFX term for the window Working with Stage modality options Using Stage styles Setting fullscreen and other window options Scene and SceneGraph Organizing the Scene content with Layout Managers Free layout The most basic layout manager – Group Region and Pane layout managers Behavioral layout Positional layout TilePane and FlowPane BorderPane layout manager AnchorPane layout manager GridPane layout manager Clock demo Summary Chapter 2: Building Blocks – Shapes, Text, and Controls Shapes and their properties JavaFX shapes overview Closed shapes Lines Curves Paths Adding Text to the JavaFX scene Controlling Shape's color Paint ImagePattern Gradients Customizing lines with Stroke API Basic Stroke Dashed lines Connecting line designs using Line Join Working with the Shape operations Transformations Coordinates and bounds Working with Bounds Demo Using the ScenicView tool to study JavaFX scenegraph  Basic Controls Button and Event Handlers Size of the Controls Clock demo Summary Chapter 3: Connecting Pieces – Binding Working with the Property API Using the Observable API Introducing the Binding API Rules of binding  Read-only properties   Binding is a one-to-many relation Binding blocks setters Bidirectional binding Using binding for visual help The role of listeners Using binding operations String operations Arithmetic operations Boolean operations Working with bidirectional binding and converters Creating custom bindings Implementing base binding classes Bindings helper function Understanding binding collections Summary Chapter 4: FXML Introduction to FXML Basics of FXML Benefits of FXML Limitations of FXML Working with FXML loaders Working with resources Using the FXMLLoader API Working with the fx:root attribute and custom components Working with Controllers Enhancing Controllers Using a preconstructed Controller Working with data Syntax details of FXML Reviewing the basics of FXML Importing packages Including other FXML files Using FXML defines Default properties Referring to resources from FXML Adding business logic to FXML Using static methods in FXML SceneBuilder Working with a WYSIWYG editor Features Specifying CSS files through the Preview menu Localization in Preview Summary Chapter 5: Animation What is an animation? Animation example Understanding KeyFrame and KeyValue Adding handlers and timers Working with the Timeline API Adding cue points Using the Interpolator API Predefined interpolators Using transitions – the predefined animations Using movement and resize transitions Using TranslateTransition Using PathTransition Using RotateTransition Using ScaleTransition Working with color transitions Combining transitions Building an animated application Summary Chapter 6: Styling Applications with CSS Introduction to CSS FirstStyles demonstration Matching JavaFX nodes using selectors Understanding naming convention for style classes and properties Using type selectors Styling specific objects using ID selectors Loading CSS files from the JavaFX code Applying styles to JavaFX nodes Having several CSS files in one JavaFX application Using the setStyle() method Calling a corresponding API method Referring to CSS styles from FXML Using global JavaFX style sheets Understanding cascading – the priority scheme for different styling methods Working with advanced CSS syntax Using pseudo-classes Working with descendant selectors Working with imports, fonts, and URLs Working with constants and the inherit keyword Why use CSS? Using the CSS API Introducing ClockControl Adding a new style class Using the new CSS property Summary Chapter 7: Building a Dynamic UI Tuning min and max size properties Controlling node location with AnchorPane Planning node size behavior with grow priorities Fluid layouts Enhancing applications with scrolling Summary Chapter 8: Effects Applying basic effects Adding shadow effects Using DropShadow Using InnerShadow Understanding the base Shadow effect Adding reflections Combining effects Distorting using blur effects Adding color effects Using ColorAdjust Using ColorInput Using SepiaTone Bloom and Glow Applying lighting effects Understanding the types of light Using Distant light Using Spot light Using Point light Using BumpInput Transformation effects Setting up PerspectiveTransform Distorting an image with DisplacementMap Using blend effects Cutting out with the SRC_ATOP blend mode Calculating the difference between images Lightening and darkening Other blend modes Summary Chapter 9: Media and WebView Working with web content Presenting web content with WebView Context menu Accessibility features Web engine Handling page loading progress with LoadWorker  Loading content and user interface callbacks Using Document Object Model Running JavaScript on a page Calling JavaFX code from JavaScript Incorporating media into a JavaFX application Adding audio clips Working with the MediaPlayer and Media classes Adding video through MediaView Summary Chapter 10: Advanced Controls and Charts Advanced controls ListView Managing ListView items Using Selection and Focus API Editable lists Creating the TextFieldListCell Editing through a ChoiceBox/ComboBox Using CheckBox Creating custom cells Using TableView TableModel Creating and combining columns to form tables Sorting Observable Model Making a table editable Working with JavaFX charts Creating a Pie chart Creating a Line chart Review of other XY charts Custom controls Skins ClockControl demo Java 9 and 10 API for skins Summary Chapter 11: Packaging with Java9 Jigsaw Handmaking JAR files Running the demo project Basic commands of the javapackager tool Creating self-contained applications Preparing OS-native installers with javapackager Working with Jigsaw modules Making our own module Summary Chapter 12: 3D at a Glance Introduction to the JavaFX 3D API Basic 3D elements Adding Camera to the Scene Lighting the Scene Using Materials Using Bump Map Working with the Diffuse and Self-Illumination maps Summary Chapter 13: What's Next? Other materials Official documentation of JavaFX Stackoverflow.com Working with JavaFX source code Beyond the official API Frameworks and libraries Blogs Future of JavaFX Summary Other Books You May Enjoy Index

Similar books

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

Session C11: Ancient Cultural Landscapes in South Europe – their Ecological Setting and Evolution, Session C22: Gardeners from South America, Session S04: Agro-Pastoralism and Early Metallurgy Sessions, Session WS29: The Idea of Enclosure in Recent Iberian Prehistory, Session C88: Rhytmes et causalites des dynamiques de l'anthropisation en Europe entre 6500 ET 500 BC: Hypotheses socio-culturelles et/ou climatiques: Proceedings of the XV UISPP World Congress (Lisbon 4-9 September 2006) / Actes du XV Congrès Mondial (Lisbonne 4-9 Septembre 2006) Vol.36

2010 · PDF

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

THE BRITISH ARMY IN INDIA: ITS PRESERVATION BY AN APPROPRIATE CLOTHING, HOUSING, LOCATING, RECREATIVE EMPLOYMENT, AND HOPEFUL ENCOURAGEMENT OF THE TROOPS. with AN APPENDIX ON INDIA : THE CLIMATE OP ITS HILLS ; THE DEVELOPMENT OF ITS RESODRCBS, INDUSTRY, AND ARTS ; THE ADMINISTRATION OF JUSTICE ; THE BLACK ACT ; THE PROGRESS OF CHRISTIANITY ; THE TRAFFIC IN OPIUM ; THE VALUE OF INDIA ; PERMANENT CAUSES OF DISAFFECTION, AND OF THE RECENT REBELLION ; THE TRADITIONARY POLICY; MISGOVERNMENT BY NATIVE RULERS ; ANNEXATIONS OF THEIR TERRITORY, ETC.

1858 · PDF

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

Idries Shah 27 Books Collection : A Perfumed Scorpion, A Veiled Gazelle, Caravan of Dreams, Darkest England, Destination Mecca, Evenings with Idries Shah, Knowing How to Know, Learning How to Learn, Letters and Lectures of Idries Shah, Neglected aspects of Sufi study, Observations, Oriental Magic, Reflections, Seeker after Truth, Special Illumination, Special Problems in the study of Sufi ideas, Sufi thought and action, Tales of the Dervishes, The Dermis Probe, The Elephant in the Dark, The Englishman Handbook, Idries Shah Antology, The Magic Monastery, The natives are restless, wisdom of the Idiots PDF.

2022 · PDF

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

The travels of Capts. Lewis and Clarke from St. Louis, by way of the Missouri and Columbia rivers, to the Pacific ocean; performed in the years 1804, 1805 & 1806, by order of the government of the United States. Containing delineations of the manners, customs, religion, &c. of the Indians, comp. from various authentic sources, and original documents, and a summary of the Statistical view of the Indian nations, from the official communication of Meriwether Lewis. Illustrated with a map of the country, inhabited by the western tribes of Indians

1809 · PDF