O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

From 0 to 1: JavaFX and Swing for Awesome Java UIs

Video Description

An intensely practical, comprehensive and quirky look at JavaFX and Swing.

About This Video

  • JavaFX: JavaFX as the evolutionary successor of Swing; JavaScript and CSS support; FXML and SceneBuilder; how FXML and Dependency Injection work; zippy synching with Properties and Bindings; 3D Animations; 2D Animations (Transitions and Timelines); Charting - for the first time in Java; Media support, and building a real Media Player; Image handling and animated GIF construction; multi-threading in JavaFX; plus all the standard stuff: menus, trees, browser controls;
  • Swing: Framework basics; JFrames, JPanels and JComponents; Menus and menu handling; Trees and their nuances; File choosers, buttons, browser controls
  • Design: The MVC Paradigm, Observer and Command Design Patterns; Dependency Injection via FXML
  • Programming Drills (code-alongs, with source code included)

In Detail

This course is a definitive guide to JavaFX where every important part of the framework is covered in great detail, with sophisticated examples and context. The course is a comprehensive guide to Swing: you will be able to build sophisticated, clean Swing apps, and employ every important technique. The course is intensely practical, packed with dozens of examples and hundreds of lines of included source code. The course is also quirky. The examples are irreverent. Lots of little touches: repetition, zooming out so you remember the big picture, active learning with plenty of quizzes. There’s also a peppy soundtrack, and art - all shown by studies to improve cognition and recall.

Table of Contents

  1. Chapter 1 : Why learn JavaFX and Swing?
    1. Introduction 00:05:02
  2. Chapter 2 : Swing
    1. The Basic Idea of Swing 00:16:50
    2. The Mechanics of Swing I 00:08:09
    3. The Mechanics of Swing-II 00:18:35
  3. Chapter 3 : JavaFX Introduced
    1. Contrasting JavaFX and Swing – I 00:11:02
    2. Contrasting JavaFX and Swing-II 00:10:16
    3. The Mechanics of JavaFX 00:04:14
    4. Properties and Bindings Introduced 00:11:21
    5. We are in sync: Properties and Bindings in action 00:04:14
  4. Chapter 4 : Properties and Bindings
    1. Properties and Bindings: Digging Deeper 00:17:13
    2. Properties and Bindings: Observables, ChangeListeners and Other Interfaces 00:14:42
    3. JavaFX: Modeling Properties and Bindings 00:12:33
    4. JavaFX: Digging into Bindings 00:10:22
    5. The trick to JavaFX properties: Lazy Instantiation 00:17:47
  5. Chapter 5 : FXML and SceneBuilder
    1. Complex UIs via FXML and SceneBuilder 00:11:41
    2. FXML behind the Scenes: Linking to the controller 00:14:01
    3. FXML behind the Scenes: Dependency Injection 00:15:31
    4. The Full Possibilities of FXML – I 00:15:19
    5. The Full Possibilities of FXML – II 00:12:18
    6. The Full Possibilities of FXML – III 00:05:25
  6. Chapter 6 : Shapes and Drawing
    1. Drawing: Shapes and Nodes 00:16:10
    2. Drawing: Fonts and a Segue into Animated GIFs 00:16:23
  7. Chapter 7 : Animation
    1. Animation: Timelines and Transitions 00:18:01
    2. Transitions Explored 00:13:46
  8. Chapter 8 : Media
    1. JavaFX Media Support: Part-Lame, Part-Awesome 00:10:37
    2. JavaFX Media Support: Getting started with common operations 00:15:25
    3. Build your own Media Player – I 00:17:49
    4. Build your own Media Player – II 00:16:33
  9. Chapter 9 : Charts and Tables
    1. JavaFX Charts and Tables – I 00:17:29
    2. JavaFX Charts and Tables – II 00:04:21
    3. Charts and Tables: An example – I 00:12:39
    4. Charts and Tables: An example – II 00:07:10
  10. Chapter 10 : 3D
    1. 3D Rendering: Introduction to 3D Rendering: Segue to Drawing in 2D 00:11:08
    2. Introduction to 3D Rendering 00:12:51
    3. 3D Rendering: Getting our feet wet 00:10:15
    4. 3D Animations: Timelines and Moving Cameras 00:05:27
  11. Chapter 11 : Swing Practical Exercises
    1. A Serious Swing App: News Curation Browser – I 00:17:01
    2. A Serious Swing App: News Curation Browser – II 00:15:09
    3. A Serious Swing App: News Curation Browser – III 00:16:05
    4. A Serious Swing App: News Curation Browser – IV 00:17:38
  12. Chapter 12 : JavaFX Practical Exercise
    1. A Serious JavaFX App: The News Curator – I 00:17:23
    2. A Serious JavaFX App: The News Curator – II 00:18:40
  13. Chapter 13 : FXML Practical Exercises
    1. Building a Serious UI App with FXML and SceneBuilder: Snippet Browser – I 00:12:00
    2. Building a Serious UI App with FXML and SceneBuilder: Snippet Browser – III 00:07:41
    3. Building a Serious UI App with FXML and SceneBuilder: Snippet Browser – III 00:15:02
  14. Chapter 14 : Properties and Bindings Practical Exercises
    1. Properties and Bindings: Coding examples 00:16:50
    2. A Zippier UI using Properties and Bindings: Snippet Browser with a Real-Time Pre 00:18:02