public static void printComponent(final java.awt.print.Printable p) { ImageHandler imh = new ImageHandler(); imh.printComponent(p, null); System.gc(); }