I use PrinterJob.printDialog()
to let the user select a printer and change various print settings.
However the dialog is always displayed using the standard Java coffeecup icon and not the one from my main window (JFrame).
How can I change the icon for that dialog?
I'm using the following piece of code:
PrinterJob pj = PrinterJob.getPrinterJob(); pj.printDialog(); // how do I change the icon for the dialog that is displayed here ... // process the selection from the dialog
Normally a JDialog inherits the icon from the "parent" JFrame, but in this case I cannot pass or specify a parent window for that dialog
I'm using Java6