Text alignment in java printing
I am using 2d graphics to print the string on to the paper.开发者_JAVA技巧 I want the string to be aligned on the paper like right, left, centre. How can I do that ?
basic Printing tutorial
EDIT: basic 2D Graphics stuff shows examples about PrinterJob, PrintJob and Print
After reviewing the tutorial, as @mKorbel suggests, you might look at this example that prints the date in the bottom right corner of each page.
精彩评论