... Two-Dimensional Shapes
Figure 22.4 shows the CSS for the BasicShapes
app. In this CSS file, we define two CSS rules with ID selectors (#line1
and #line2
) to style the app’s two Line
objects. The remaining rules use type selectors, which apply to all objects of a given type. You specify a type selector by using the JavaFX class name.
Get Java How to Program, Early Objects, 11th Edition 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.