changed Printer and changed print() and swap() in EventHandler. added PrinterTest.