Hi,
I am not sure what you are doing wrong. However, a long time ago I experimented
with printing and maybe some code snippets will help you.
private class A4 extends Paper {
public A4() {
super();
setSize(594.992125984252, 841.8897637795276);
setImageableArea(36.0, 36.0, 522.99212598425197, 769.8897637795276);
}
}
and
private PageFormat createFormat() {
PageFormat format = PageFormat();
format.setPaper(new A4());
return format;
}
for me this worked. Hope it helps.
(Sorry for the bad layout, I just don't know how to get that right)
Piet
[Message sent by forum member 'pietblok' (pietblok)]
http://forums.java.net/jive/thread.jspa?messageID=241226
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".