1 /* 2 * Program to make sure the BalloonFamily class is working 3 */ 4 5 package balloonpeople; 6 7 import painter.SPainter; 8 9 import javax.swing.*; 10 11 public class BalloonFamilyTester { 12 13 public BalloonFamilyTester(){ 14 //Create BalloonFamily 15 BalloonFamily family = new BalloonFamily(5); 16 //create painter 17 SPainter milo = new SPainter("Milo",1200,800); 18 //print out BalloonFamily 19 System.out.println(family.toString()); 20 //paint BalloonFamily 21 family.paint(milo); 22 } 23 24 public static void main(String[] args) { 25 SwingUtilities.invokeLater(new Runnable() { 26 public void run() { 27 new BalloonFamilyTester(); 28 } 29 }); 30 } 31 }