File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes creating hard copy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "creating hard copy" Watch "creating hard copy" New topic

creating hard copy

richard olsen

Joined: Feb 07, 2002
Posts: 3
dear everyone
thanks for this great site which has helped me
get scjp status.
my question is, can you stick a button on a gui
which will permit the immediate printing out on
paper of, say, an image etc.
(i mean can this be programmed of course)
Rob Ross

Joined: Jan 07, 2002
Posts: 2205
Yes, you can. There is work you have to do to make it happen, and it can be simple or complex depending on what is being printed.

SCJP 1.4
richard olsen

Joined: Feb 07, 2002
Posts: 3
sorry if my question seems stupid or lazy.
i have no connections with the computing industry
and have learned my java from what few books i can afford plus the internet.
a last appeal.
can anyone suggest where i can find some coding for this kind of job.
Roy Ben Ami
Ranch Hand

Joined: Jan 13, 2002
Posts: 732
in order to print to the printer in java u need to use the java api for printing.
this link provides a good beginning.
learn from the docs the PrintJob class which is responsible for printing.
richard olsen

Joined: Feb 07, 2002
Posts: 3
thanks roy, this looks like what i want.
I agree. Here's the link:
subject: creating hard copy
It's not a secret anymore!