// This is where things get started public static void main(String args[]) { // Create a new frame to hold the canvas and put it up. Frame fm = new Frame(); Animate b = new Animate(); // Make it visible and set size b.setVisible(true); b.setSize(300, 300); System.out.println("Here we go"); // Add the canvas to the frame and make it show fm.add("Center", b); fm.pack(); fm.show(); }