By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,441 Members | 1,831 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,441 IT Pros & Developers. It's quick & easy.


P: n/a

I'd like to create a custom PrinterJob.

I did it this way:

1) I created a class mypkg.MyPrintJob that extends;

2) I created a second class in the same package in which I do:

System.setProperty("java.awt.printerjob", "mypkg.MyPrintJob");
PrinterJob printJob = PrinterJob.getPrinterJob();

But this method gets an exception:

java.awt.AWTError: PrinterJob not found: mypkg.MyPrintJob

What's wrong?

Thanks a lot.



Sep 12 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.