Introduction to JavaFX
summary
A Swing race-finder UI is rebuilt piecewise using FXML for layout, CSS for styling, a cell factory for custom list cells and ObservableList to auto-update views, reusing the existing Race data provider. The demo loads real web pages via WebView (WebKit), embeds JavaFX inside Swing with JFXPanel embedding, and runs animations with Parallel/Scale/Translate transitions. Cells are virtualized (only about a dozen created even for millions of items), threading uses Platform.runLater, and the live demo works.
AI-written summary · about
chapters (13)
- 0:00Introduction
- 6:01What is JavaFX
- 8:48First JavaFX app
- 13:01Separating UI logic
- 15:52Using FXML
- 17:18Swing to JavaFX
- 20:09FXML to Java logic
- 24:30Custom list cells
- 29:03CSS styling
- 31:30JavaFX in Swing
- 35:21Animations and effects
- 38:52Final demo
- 39:54Q&A
related talks
46mJavaFX in the Web
59mSay the Words: Modern Java with JavaFX for Rich Client UIs
40mModernizing Java UIs Without JavaScript: Escape the Multi-Stack Trap
59mJavaFX 2.0: Rich Internet Applications with the Java Platform
47mJava on the Desktop
42mJavaFX 20 and Beyond
51mMay JavaFX be with you always
49mJavaFX 8 everywhere; Write once runs anywhere
