The program works fine under Windows and Solaris. I have not personally
tested it under Linux. Does the Linux JDK support printing? The error
message seems to imply that it didn't come from the source in from the AWT
book. Is this something you added, or does it come from the Linux port?
I'm no longer on the Java-Linux mailing list, so I'm not sure if anyone
else answered this for you already.
Regarding printing in the JDK 1.2 API, it is much easier/cleaner to print,
especially multiple pages. In fact, you can even print w/o the dialog box
coming up.
J
Thanks for your message at 04:34 PM 8/12/98 -0700, Laura L. Evangelista:
>Sir,
>
> I tried to run your sample application "TestPrint" but it
>wouldn't print anything ... The print dialog shows up. But when I
>choose "Print" from the dialog, a "Print Error" dialog shows up
>with the message:
>
> "Could not execute print
>command: [Ljava.lang.String;@80cbe12"
>
> This is the first time I tried the printing feature in Java
>(I also tested other sample applications, but they all wouldn't
>work) ... The printer (HP LaserJet 4L) is from within the (local)
>network ... I am using RedHat Linux 4.2, JDK 1.1.3 ...
>
> I hope you can help me on this.
>
> Thank you.
>
>-- Laura
>
>Tidbits:
>What can you say about the Printing API in JDK 1.2?
>
John Zukowski Focus on Java Guide / http://java.miningco.com
[EMAIL PROTECTED] | [EMAIL PROTECTED]
Author Java AWT Reference / Borland's JBuilder No Experience Required
MageLang Institute - http://www.magelang.com
Will hack Java code / book for food