This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "creating hard copy" Watch "creating hard copy" New topic
Author

creating hard copy

richard olsen
Greenhorn

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)
richard
Rob Ross
Bartender

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.


Rob
SCJP 1.4
richard olsen
Greenhorn

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.
thanks
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
Greenhorn

Joined: Feb 07, 2002
Posts: 3
thanks roy, this looks like what i want.
richard
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating hard copy