• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

creating hard copy

 
richard olsen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
richard olsen
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 732
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks roy, this looks like what i want.
richard
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic