File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Printing on two printers simultaneously Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Printing on two printers simultaneously" Watch "Printing on two printers simultaneously" New topic

Printing on two printers simultaneously


Joined: May 14, 2001
Posts: 7

i have to print the content of a JComponent in two printers connected over a peer-to-peer network simultaneously.
please help me by sending some information about changing default (or setting) printer using java .
thanks in advance

Gizzmo Zeuzere
Ranch Hand

Joined: May 11, 2001
Posts: 45
Hi friend !
If you use a PrinterJob, you can use the PrintDialog twice, I think.
But I'm not sure

Joined: May 14, 2001
Posts: 7
Thanks for your response
here once more i will explain my problem briefly.
i have a peer-to-peer network of three terminals.
For each systems i am having printer connected to the default port.Here each terminals should be able to send information to the respective default printers and also to a common printer connected over the network(These two operations can be in two threads).Here i can set the printers by using the print dialog box what i can get , but it is not desirable for me and i should be able to set both printers in coding part(like setting page size and number of pages) and redirect deferent data to these printers at a time.
Expecting help from all of You,
Rajesh Adukkadukkath

[This message has been edited by hereisrajesh (edited May 15, 2001).]
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Posts which contravene the naming convention are not eligible to win books! Please log in with a new name which meets the requirements.


Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Printing on two printers simultaneously
It's not a secret anymore!