B
Bruce Feist
I'm trying to print using Java, for the first time. I decided to use
the 1.1 API because it's simple and adequate for the simple line drawing
I'm trying to display (a maze). I'm actually drawing on the Graphics
object received from the PrintJob directly, scaling my diagram to the
reported dimensions. The drawing is done with a series of
Graphics.setColor() and Graphics.drawLine() calls -- nothing else. The
only colors I set to are white and black, and the same routine that
draws to the page also is used to draw to a 400x400 JFrame's ContentPane
successfully.
It mostly works, the upper left corner of each 8.5" x 11" page is
obscured by a light gray square, measuring roughly 5" x 5". The square
only shows up when I draw to the printer -- not to the JFrame/ContentPane.
What on earth could cause this? Any ideas?
Thanks,
Bruce Feist
the 1.1 API because it's simple and adequate for the simple line drawing
I'm trying to display (a maze). I'm actually drawing on the Graphics
object received from the PrintJob directly, scaling my diagram to the
reported dimensions. The drawing is done with a series of
Graphics.setColor() and Graphics.drawLine() calls -- nothing else. The
only colors I set to are white and black, and the same routine that
draws to the page also is used to draw to a 400x400 JFrame's ContentPane
successfully.
It mostly works, the upper left corner of each 8.5" x 11" page is
obscured by a light gray square, measuring roughly 5" x 5". The square
only shows up when I draw to the printer -- not to the JFrame/ContentPane.
What on earth could cause this? Any ideas?
Thanks,
Bruce Feist