1- Write a JavaFX program that draws a US flag, as shown inFigure 1. Note this is not displayed from an image; rather that itis drawn using polygons and rectangles. Create the GUIprogrammatically. DO not use FXML.
2-Write a JavaFX program that displays heads (H) or tails (T)for each of nine coins, as shown in Figure 2. When a cell isclicked, the coin is flipped. A cell is a Text. Write a custom cellclass that extends Text with the mouse handler for handling theclicks. When the program starts, all cells initially display H.Create the GUI programmatically. DO not use FXML
Expert
OR
PayPal Gateway not configured
OR
PayPal Gateway not configured
PayPal Gateway not configured
PayPal Gateway not configured