for (int i = 0; i < jobListeners.size(); i++) {
listener = (PrintJobListener)(jobListeners.elementAt(i));
switch (reason) {
case PrintJobEvent.JOB_COMPLETE :
listener.printJobCompleted(event);
break;
case PrintJobEvent.JOB_CANCELED :
listener.printJobCanceled(event);
break;