Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Smileys Part 2 Overview: Classes can be used to wrap up data and services that describe a thing. We will use classes to wrap all
Smileys Part 2 Overview: Classes can be used to wrap up data and services that describe a thing. We will use classes to wrap all data and services that describe what a smiley face is and how it behaves. Hey, think about it this way, part of this project is already done sort of. You did smiley back in the beginning of the year and create a method to draw a smiley. We will do things a little differently this time. You will make a applet that will use instances of a SmileyFace class that you write. The smiley face will be a JPanel with the paintComponent() method overridden. This allows us to paint in a component and use that component in an applet. You will make 3 smileys in your applet, you will give the user the option to change attributes of the smiley: size, eye color, eye size, face color, mouth open or closed, eyes open or closed, eye winking, or anything that you can imagine changing about the smileys The user should have the option of changing at least 4 different attributes in each of the different smileys Requiremed Skills: Writing JPanel classes with paintComponent() method Writing classes with instance variables, methods, and constructor Instantiating objects from classes that you have written Using methods to update the state of an objedt Instantiating multiple objects from the same class in an applet any and all drawing and gui skills necessary to complete the task
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started