Beginning of GUI class

The GUI class extends Frame.

Therefore an object of the class is a frame.

Listing 2 sets values for the layout, size, and title properties of the frame.

Listing 2. Beginning of GUI class.
class GUI extends Frame{

  public GUI(){//constructor
    setLayout(new FlowLayout());
    setSize(250,75);
    setTitle("Copyright 2003 R.G.Baldwin");
File: bx.htm [Next] [Prev]