Question: 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
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.
Step by Step Solution
3.41 Rating (160 Votes )
There are 3 Steps involved in it
a import javaxswing import javaawt import javaawtColor import javaawtevent public class JChangeSizeA... View full answer
Get step-by-step solutions from verified subject matter experts
