|
If your entire objective was to draw this picture on the computer screen, is writing this program a sensible way to do so? A good answer might be:No. Using PC Paint, or some other drawing tool would be a better way to make such a picture. It is much easier to draw lines using the mouse than with progamming. |
New ProblemThe reason for these lessons on Java graphics commands was to show what they do. Usually they would not be used in drawing a picture as in this example. They would usually be used as part of a program that is interacting with the user or with a file of data to produce a picture. For example, if you wanted to write PC Paint in Java, you would certainly use all of these commands. There situations where a picture consists of a vast number of elements that can be computed by a program, but are too numerous for a human to specify each one with a mouse or other means. The next example is a simplified example of this. |
QUESTION 9:How could you draw ten red circles across an applet's drawing area? Click Here after you have answered the question |