4 Replies Latest reply: Sep 20, 2007 11:37 AM by 807605 RSS

    Abstract classes

    807605
      I am using a GBPanel, running on a GBFrame. Because of the MouseListener I am using, the GBPanel has to be abstract. When I try to run the GBFrame, however, the abstract class gives me an error. This is what the GBFrame, or the program that runs the other, looks like :
      import BreezySwing.*;
      import java.awt.*;

      public class connect4game extends GBFrame
      {
           private GBPanel panel;
           public connect4game()
           {
                panel = addPanel (new connect4(),1,1,1,1);
           }
           public static void main (String args []);
           {
                connect4game tpo = new connect4game();
                tpo.setSize(400,400);
                tpo.setVisible(true);
           }
      }

      What am I doing wrong?

      -Jorge Mondo