Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In this programming activity, you will make an application that uses graphics to draw a picture of your own design. The objective of this programming
In this programming activity, you will make an application that uses graphics to draw a picture of your own design. The objective of this programming activity is to gain experience with the window coordinate system, thestrokeandfillgraphics methods, and using colors.
- Start with theShellGraphicsApplicationclass, change the name of the class to represent the figure you will draw, and add animportstatement for theColorclass. Remember to include theJIGraphicsUtility.javafile in the same folder.
- Make a drawing of your own design. It's helpful to sketch the drawing on graph paper first, then translate the drawing into the coordinates of the application window. Your drawing should define an anchor point, and include at least two each of rectangles, ovals, and lines, plus a path. Your drawing should also use at least three colors, one of which is a custom color.
- Label your drawing using thefillTextmethod.
I don't understand how to get started. Do I make a new Java application and name it after my drawing choice? Where does the ShellGraphicsApplication come into play and what is the use of the JIGraphicsUtility.java?
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