posted 19 years ago
Hello,
I am trying to print using PrinterJob from my GUI.
I noticed that when I select a printer from a printer list in the Dialog, that printer is not 'remembered' next time I try to print.
So, how can I make it so that I can have the PrinterJob remember the printer I chose initally?
I noticed that PageFormat doesn't carry that value. So what field does carry the value for which printer it is?
One other solution I tried was to define the PrinterJob at the beginning of the GUI hoping that it would exist throughout and retain it's fields' values. But it doesn't.
printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(GUI.this, pageFormat);
I would appreciate any help or comments.
Ivan