posted 15 years ago
Hi,
Once again, I have been pulling my hair out searching the web for the solution to this, all to no avail.
So I ask youguys, how do I resize my JFrame during printing so that it prints the whole JFrame? I am asking because I have a JFrame that when printed using graphics2d and a printerJob(), prints only the top left corner of the JFrame, while I want it to print the whole thing without cutting it off.
If someone could at least point me in the right direction I would be very grateful. Thanks in advance.
Below should be all of the relevant code.