<AWT Dev> Cross-Platform print dialog ignores Window's default printer setting?

Phil Race philip.race at oracle.com
Sat May 7 19:30:29 PDT 2011

Hello Clemens,

Just so you know: printing in JDK is entirely a 2D area. Package name isn't
a useful indicator. You should move this to a 2D forum as how all printer
selection is done is in 2D code ..

And (forgive me for being nit picky), this is really more of a question for
one of the forums on using the APIs rather than the openjdk ones for
working on the implementation. That's my standard reminder on this to
be consistent.

But if I knew the answer off hand, I'd give it, but I don't. We just
query the default printer and so the cross platform dialog
should show whatever the native dialog does.

Maybe there's a locale issue I am not aware of.


On 5/7/2011 3:06 PM, Clemens Eisserer wrote:
> Hi,
> I am currently writing some all-in-one solution for a small airport,
> inclusing some JasperReport based reports.
> JasperReports uses the cross platform print dialog based on Swing,
> however the dialog seems to completly ignore the default printer.
> E.g. although the epson receipt printer is set to default, some filter
> driver is choosen by the swing dialog instead:
> https://picasaweb.google.com/lh/photo/5xW_wB63hRQJzbwRCsg_TgBiX1r6uK8ZJh_dEiJnndQ?feat=directlink
> https://picasaweb.google.com/lh/photo/nClqBtgcf4Lh8-DEACd6zwBiX1r6uK8ZJh_dEiJnndQ?feat=directlink
> Any idea what can be done about that?
> Thank you in advance, Clemens

More information about the awt-dev mailing list