HW1b: Using the Repitition and Conditional Statements with Java Graphics Primitives
Due: Wed, Feb 5, 2003
The applet should use the Java graphics
primitives, the conditional and the repition statements to draw
as per the specifications given below:
Using the JOptionPane.showInputDialog, prompt the user for the x and y coordinates for the
center of the pattern.
Using the JOptionPane.showInputDialog, prompt the user for the outer diameter of the pattern.
- Draw the pattern as shown in the applet with alternating
black and red bands using the fillOval method (java.awt.Graphics class)
The applet should write your name at the top.
- A link to the source code of your applet.