For a project I need to print some numbers to the printer. They need to be printed below eachother, aligned on the comma. The font is not and can not be a monospaced one. I'm using a DecimalFormat("0.000") to transform all the numbers into strings ending in exactly 3 decimals.
What would be the correct way to align the numbers on the comma, below eachother? I'm using Java's Printable interface, as explained here http://docs.oracle.com/javase/tutorial/2d/printing/index.html.
Thanks
EDIT: I'm not trying to print to the console, but to a printer (the actual hardware thing where real paper comes out)