Beginning of the class named Prob08Runner

The class named Prob08Runner begins in Listing 1.

There is nothing in Listing 1 that I haven't explained in earlier lessons,

Listing 1. Beginning of the class named Prob08Runner.
class Prob08Runner extends JFrame{

  private JPanel mainPanel = new JPanel();
  private JPanel titlePanel = new JPanel();
  private JSlider slider = new JSlider();

  private Picture butterfly = 
                         new Picture("Prob08.jpg");

  private int butterflyWidth = 
                              butterfly.getWidth();
  private int butterflyHeight = 
                             butterfly.getHeight();

  private Picture display =
       new Picture(butterflyWidth,butterflyHeight);

  private Pixel pix1;
  private Pixel pix2;
  private Pixel displayPixel;

  private double distance = 0;
File: bb.htm [Next] [Prev]