Hi John!
You will find an explanation of printing in java on the page
http://www.javaworld.com/javaworld/jw-03-2001/jw-0302-print_p.html
(and the 4 articles before). The author construct a nice framework
to make printing easier. My tip read the article, correct the code (I
think there are some bugs i.e. the PFUnit.add-method) and are
happy about the time you save by using the framework.
Hope this is useful for you
Niels
-----------------------------------------
Niels Stargardt
PPI Financial Systems GmbH
Hindenburgstraße 49
22297 Hamburg
Telefon: (040) 227433-323
Telefax: (040) 227433-333
Email : [EMAIL PROTECTED]
> This is soooooooo confusing. I'm using 1.3 in an application that
> makes use of a small number of Java 2D APIs(dashed lines and fill
> patterns are examples). I can't seem to find any definitive
> explanation of which print API to use. Should I use
> Toolkit.getPrintJob or PrinterJob.getPrinterJob? If I use the latter,
> how can I determine the settings selected by a user with the print
> dialog's Properties dialog(the one shown when a user clicks on the
> "Properties" button within the initial print dialog)? Also, isn't the
> Toolkit.getPrintJob the only one that offers a cross-platform print
> dialog? The dialog you get from PrinterJob.printDialog looks a little
> "clunky" on Unix compared to the one you get from Toolkit.getPrintJob.
>
> I would appreciate a definitive explanation of what I "should" be
> using.
>
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing