Forums Register Login

Changing Printer Ink Colour

+Pie Number of slices to send: Send
Below is my standard print module. It prints the film titles seen in red located within a JTextArea. The print comes out as the same colour red I have specified in my JTextArea. In order to save on coloured ink, I would like to have it print out in black. I experimented with the print class, but failed to find out where to insert code that would give me a black ink printout.

http://pollscanada.com/screenshot.html


+Pie Number of slices to send: Send
Very nice screenshot!! Deserves a bottle of red ink!

Can you select "PRINT IN B&W option " in your printJob.printDialog()-dialog?

or

Did you try:
componentToBePrinted.getGraphics().setColor(Color.black);
componentToBePrinted.paint(g2);
Probably will not succeed?

Just curious....
+Pie Number of slices to send: Send
ok ko let me try that
What's a year in metric? Do you know this metric stuff tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 928 times.
Similar Threads
printdialog properties..
Printing TextArea which span more than 1 page
Font Problem in Java Print API
Printing Problem to print header
Printing in "html/text" format
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:08:47.