1. Write an application that extends JPanel and displays a phrase in every font size from 6 through 20. Save the file as JFontSizesPanel.java.

2. a.Write an application that extends JPanel and displays a phrase in a large font. Each time the user clicks a JButton, display the same phrase in a different color, a little further to the right, and in a slightly smaller font. Allow only three clicks. Save the file as JChangeSizeAndColorPanel.java.

b.Modify the JChangeSizeAndColorPanel application so that it continuously changes the size, color, and location of a phrase as long as the user continues to click the button. Save the application as JChangeSizeAndColorPanel2.java.

3. Write an application that extends JPanel and displays a phrase. Each time the user clicks a button, alternate between displaying the phrase upside down and right-side up. Save the application as JUpsideDownPanel.java.

Instead of three programs, make a few changes to ONE program that includes everything:

1. When the user clicks the button the phrase will display upside down or right-side up (alternate)

2. Only allow the user to click the button FOUR times. After this, disable the button.

3. Change the color each time the button is clicked (only 4 colors are needed).

4. Change the font size each time the button is clicked (only 4 sizes needed).

*Example, the user clicks the button- it should flip upside-down, change color and change font size.

Academic Honesty!
It is not our intention to break the school's academic policy. Posted solutions are meant to be used as a reference and should not be submitted as is. We are not held liable for any misuse of the solutions. Please see the frequently asked questions page for further questions and inquiries.
Kindly complete the form. Please provide a valid email address and we will get back to you within 24 hours. Payment is through PayPal, Buy me a Coffee or Cryptocurrency. We are a nonprofit organization however we need funds to keep this organization operating and to be able to complete our research and development projects.