Professional Documents
Culture Documents
Write A Program That Paints A Smiley Face As Shown Below
Write A Program That Paints A Smiley Face As Shown Below
1. Write a program that displays the following labels and images using a flow pane. The image
files can be downloaded below. Use the following code to set the font of the labels:
label.setFont(Font.font("Times New Roman", FontWeight.BOLD, FontPosture.ITALIC, 20));
Modify the image to add a rectangle (or square somewhere) in the image. Also apply color to all
the shapes. You are free to embellish the face as much as you like provided you have used at
least 5 different shapes.
This question was supplied by Dr. George Townsend, modified by Michael Lajoie Spring 2021