Click to See Complete Forum and Search --> : Java - Graphics2D.drawString()


nanode
04-25-2001, 06:54 PM
I have observed some inconsistencies that I cannot understand with the drawString() method when printing on paper. I am taking a string "Hello.\nHow are you?" and passing to a class that manages page printing.

Problem is although the strings appears correct when printed to console, the newlines are no respected when printed to paper.

Any reason for this, or trick to work around?

Thanks