Control–Skin architecture
The skeleton behind every custom control: how a skin talks to its control through listeners and bindings, and how layout and CSS fit in.
A code-first book for JavaFX developers
Build your own controls with the Control–Skin architecture using Skinning JavaFX Applications, a pure JavaFX book.
Complete Control / Skin / CSS source for every control in the book.
// three-tier tokens, resolved live public class ThemeManager { public void applyTheme(Theme theme) { scene.getStylesheets().setAll(theme.stylesheet()); } }
What you'll learn
The first half skins the controls JavaFX already ships. The second half designs original controls for components the platform doesn't provide.
The skeleton behind every custom control: how a skin talks to its control through listeners and bindings, and how layout and CSS fit in.
Switch between light and dark at runtime without reediting your CSS files by hand.
Dissect Mica, Acrylic and Reveal, build your
own backdrop blur, and replace the OS title bar with a professional custom stage.
Contents
For the developer who found that no existing control does quite what the project needs, and that some default controls resist restyling from CSS alone.
The architecture behind controls and skins, and the minimum you need before building on top of it.
How a skin communicates with its control using ChangeListeners or bindings.
The three kinds of layout bounds JavaFX provides.
How layoutChildren() works, how to clip nodes and some methods you need.
A dense chapter on customizing controls with your own CSS rules.
Light and dark mode without rebuilding the entire interface.
How virtualization works in ListView, TableView and TreeView.
A small animation library with standard and premium effects for your skins.
Mica, Acrylic and Reveal dissected, plus your own backdrop-blur mechanism.
Professional window chrome from scratch, instead of what the OS gives you.
The companion library
Do you want a project with a real UI? Vitra is a UI library with more than 10 controls and skins for modern JavaFX applications.
Vitra is licensed under an EULA: you read and accept it, then receive the source code.
Pricing
Learn the architecture, use ready-made controls, or do both: the book explains how Vitra-style controls are made. Vitra offers you some controls that are not covered in the book.
Ten chapters on Control–Skin, theming, Fluent materials and custom stages, with source code in the book.
Get the bookMore than 10 controls and skins, delivered as source code under an EULA, in the plan that fits your project.
Compare plansUnderstand how every control works, then drop the finished ones into your application.
Get bothThe interaction library
Do you want common and premium micro-interactions for your projects? Celestia is a library that contains more than 30 modern micro-iteractions.
Celestia is licensed under an EULA: you read and accept it, then receive the source code.
Testimonials
The chapter on runtime theme switching alone paid for the book. I finally understand why my old stylesheet swaps used to flicker.
I went in for the skinning chapters and stayed for the custom Control/Skin architecture. My internal dashboard controls are unrecognizable now.
Clear, code-first, and honest about what's optional. The Fluent chapter on Mica and Acrylic is the best explanation I've found anywhere.
The author
Software developer, UX/UI designer and technical author with a degree in Computer Science. He builds a
suite of JavaFX and SQL Server desktop business applications, and this book comes from years of shipping them.
Because he lives in Cuba, payment options are limited. You can send a WhatsApp message with your request
and get information for a payment agreement.
FAQ
You should be comfortable building a JavaFX application: laying out scenes, wiring up FXML or plain Java, and applying basic CSS. The book picks up where the reference documentation stops.
Yes. Every control ships with its complete Control, Skin and CSS source, not fragments, so you can drop it into your project and adapt it.
Both. The first half restyles the controls JavaFX already ships; the second half designs original controls: architecture, skin and CSS.
Ten chapters and a library you can call your own.
Get the book