CP2003 - Tutorial Seven: GUI's - A New Hope
- Write a Java application that opens a JFrame with the following
properties:
- The JFrame can be closed properly.
- Firstly, modify the code in
OlympicDraw.java try to draw the following
(all too familiar) image:
- Optional: Add colour to the rings so that they are the same colour
as the Olympic rings (I think they're blue, black, red, yellow and green).
Setting the drawing colour is done using the "setColor" function, so a
command like gr.setColor(new Color(255, 0, 0)); will set the
drawing colour to red.
- Alter your code so that:
Copyright © 2000. James Cook University. All rights reserved.