22.12 Wrap-Up
In this chapter, we completed our discussion of JavaFX that began in Chapters 12 and 13. Here, we presented various JavaFX graphics and multimedia capabilities.
We used external Cascading Style Sheets (CSS) to customize the appearance of JavaFX Nodes, including Labels and objects of various Shape subclasses. We displayed two-dimensional shapes, including lines, rectangles, circles, ellipses, arcs, polylines, polygons and custom paths.
We showed how to apply a transform to a Node, rotating 18 Polygon objects around a specific point to create a circle of star shapes. We created a simple video player using class Media to specify the video’s location, class MediaPlayer to load the video and control its playback and class MediaView ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access