Java – Topic
27
(Graphics in Applets)
TASK
QUESTION
Recreate the following in an applet (details below).
Details:
g2D.setColor(Color.red);
To set the colour to green, you use:
g2D.setColor(Color.green);
For maximum marks, your applet has to work for any size. In other words, if I size it differently in the html code, it should all resize.