public static void printComponent(final java.awt.print.Printable p) {

    ImageHandler imh = new ImageHandler();

    imh.printComponent(p, null);

    System.gc();
  }
  public static void printImage(final Image image) {

    ImageHandler imh = new ImageHandler();

    imh.printImage(image, null);

    System.gc();
  }