CS 2121 Introduction to Java:
Programming Assignment 2

Due February 19, 30 points


Introduction

For this programming assignment you will build an applet that draws a fractal pattern. Your applet will have various controls to modify how it is drawn.

There will be two classes defined in your applet. The FractalPanel class extends the JPanel class. It is the display area for drawing the fractal pattern. The FractalApplet class extends the JApplet class. This class contains the init() method, which lays out the components of the applet and establishes their communication with the fractal panel using event listeners.

Programming Assignment Steps

You should be prepared to demonstrate your applet at the beginning of the lab hour on the due date. After giving a demonstration, you should turn in copies of both FractalApplet.java and FractalPanel.java. Be sure that the course, assignment number, and your name appear as comments in both files, as you did for the first programming assignment.