Java Swing - Graphics LESSON WORK QUESTION #1 Recreate the following basic shapes
using Shape objects and the Graphics2D class.
You might want to calculate a few
point locations before getting started. QUESTION 2 You will use Java to
recreate the outline of an object of your choice. You should try to use an object with a
decent amount of complexity but with mostly straight lines. Here is an example: HINT:
If you copy an image into an image editor such as Paint or Paint.net, you can
actually mouse over different areas of the image and get their
coordinates. So, recreating individual
lines simply consists of getting the coordinates of both endpoints and
drawing them. |
|