Jar crashes on printing - general Swing problem?

Hello all,

my Java-application uses Swing to print the content of a window which works flawless. Except if I use the color printer I need to print and not the b/w one. As soon as I ...

a) change the printer in the print-dialog

b) change the standard prtiner wihtin the computer prefs

to this printer (Fiery Color Printer),

the program crashes even before I can hit the "Print" button ie. the program crashed as soon as the dialog should come up (in case the printer is set as standard) or as soon as I chose the printer in the print dialog.

I heard that printing IS an issue with Swing. Does anybody have any suggestions of a work around? Would be highly appreciated.

Take care,

iFlash

[740 byte] By [iflasha] at [2007-11-26 16:19:50]
# 1
If you could create this crash again and then check the log file / java console and post what it says here, we could give you better advice.To me, this seems more like maybe you've run out of memory
tjacobs01a at 2007-7-8 22:43:22 > top of Java-index,Desktop,Core GUI APIs...
# 2

Yes, I can reproduce the the crash (it happens every time I use this special printer). Out of memory? Hmm, I just want to print ONE page, I have two gig main memory and the Jar is 24 KByte small. It's a real simple program ...

I will check console and post any hints I find there. Thanks for the tip!

Regards,

Armin

iflasha at 2007-7-8 22:43:22 > top of Java-index,Desktop,Core GUI APIs...