Is there an easy way in Java to do the following?
Java System. out. println() is used to print an argument that is passed to it.
In Java, System. out. println() is a statement which prints the argument passed to it. The println() method display results on the monitor.
The Java Printing API enables applications to: Print all AWT and Java 2D graphics, including composited graphics and images.
Some quick hints:
print from java: see A Basic Printing Program
status of printing job: you might be able to get something useful by using a PrintJobListener:
Implementations of this listener interface should be attached to a DocPrintJob to monitor the status of the printer job. These callback methods may be invoked on the thread processing the print job, or a service created notification thread. In either case the client should not perform lengthy processing in these callbacks.
A very good printing tutorial: http://download.oracle.com/javase/tutorial/2d/printing/index.html
Also check answers to my question about printers, the Printer Job API is what are you looking for, but checking this out will also help:
How to Send JTable data to Print Job from Java Application?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With