5. User Interface Components

Graphical objects include user interface components, described in this chapter. JavaFX currently offers two flavors: Java Swing-based components that are wrapped for seamless integration into JavaFX and “native” JavaFX components. Recently, the native JavaFX UI component offerings have increased, and we briefly describe these new components in this chapter. We point you to examples throughout the book that use the described components, where possible.

You can apply CSS styles to graphical objects (“skin” them), which is especially useful for incorporating UI components with a uniform look and feel. You can also build your own “skinnable” UI components. (Skinnable components let you apply a uniform style to components ...

Get Essential JavaFX™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.