Article View: borland.public.jbuilder.java.language
Article #166issue with PrinterJob.pageDialog(attributes)
From: Oliver
Date: Wed, 29 Mar 2006 14:50
Date: Wed, 29 Mar 2006 14:50
30 lines
1854 bytes
1854 bytes
Hello,
i am using
PrinterJob job = PrinterJob.getPrinterJob();
job.pageDialog(attributes);
javax.print.attribute.Attribute a[]=attributes.toArray();
to show a pageDialog for the user so that he can adjust his
print margins. This works in principle. But: under certain
circumstances the user cannot change the print margins. The
dialog changes the value in the edit box back to its previous
value.
My first thought was that the system only tries to avoid silly
values, but after more tests i found out that this not the
source of the problem. For example i once used a right margin
of 5 mm. Printout ok with 5 mm. Then i changed it to 50 mm.
Printout ok with 50 mm. Ok. But if i enter now the pageDialog
again, i cannot change the right margin back to 5 mm (the
system automatically switches back to 50 mm, although 5 mm is a
perfectly reasonable value).
My beta tester is somewhat irritated by the behaviour of the
dialog but i told him that its a system dialog. :-)
Did somebody have a similar problem?
regards
Oliver
Technical Details
Message-ID:
<442aacb8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,44ed6e7a1ccb83ce,start X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Oliver" <o.maas@nospam_metrohm.de> Sender: "Oliver" <o.maas@nospam_metrohm.de> Reply-To: "Oliver" <o.maas@nospam_metrohm.de> Subject: issue with PrinterJob.pageDialog(attributes) Newsgroups: borland.public.jbuilder.java.language X-User-Info: 81.90.37.2 NNTP-Posting-Host: 207.105.83.66 Message-ID: <442aacb8$1@newsgroups.borland.com> Date: 29 Mar 2006 07:50:16 -0700 X-Trace: newsgroups.borland.com 1143647416 207.105.83.66 (29 Mar 2006 07:50:16 -0700) Lines: 31 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news4.google.com!news2.volia.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail