| 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
|
 |
 |
|
|
subject: creating hard copy
|
|
|