The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2001

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Printing in Java

Posted by Leon on January 07, 2001 at 10:25 PM

I happen to be building a web application using Java and in that
application, I allow the user to print either by clicking on a
link or on a button.

I realised that within the printerJob class that there are the
methods getCopies(), setCopies(int a), printDialog() etc.

I opened up the printerJob class (which is found in the src.jar)
and discovered that the methods within the class is empty.

However, when I did a test application, the printDialog() method
is able to call up a print common dialog box(I am using Windows
as my OS).The getCopies() and setCopies(int a) method however did
not work at all.

I know that it is impossible for the common dialog box to open
up by itself without any codings so I would like to request for
your help in finding the codes for the printerJob class.

Thanks for your time.
Leon.



Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us