The Practice and Philosophy of Object-Oriented Programming in Java

New Practice Problems for Chapter 9

Triangulation.  Write a JavaFX application called Triangulation that looks like this when launched:

The root node is a BorderPane. The triangles appear in a pane in the center region. Use the setMinSize to set the center pane's size to 200 x 200 pixels. Each triangle is obtained as a Polygon object. It is visible or invisible depending on whether the checkbox next to it is selected. You can toggle visibility of a polygon by calling its setVisible method.