How do I take advantage of the full resolution of the printer? When I do a
default print using the printer service I seem to get the resolution of the
window that I am printing, is there some way of getting the resolution of the
printer not that of the display device? I have a Java2D graphics
I suspect you are printing a double-buffered swing component window
using paint().
That paints to the swing back buffer which is unsurprisingly at screen
resolution
and then that is what you are sending to the printer.
Use Component.printAll() to print a Component, *not* Component.paint().
All this talk of PageAttributes and printing has reminded me of a
strange problem I have here. I'm using JDK1.3 under Windows 98 and
printing to an Epson Stylus printer. If I print a load of vector
stuff, lines circles etc. then everything gets printed at printer
resolution and is fine. If,