|
-
September 14th, 2000, 04:49 PM
#1
Printing
Just want to do a simple print screen from java application from menu item/toolbar button. Have following action listener which brings up the print dialog box, but does not print the screen, just a kernel error:
public void actionPerformed(ActionEvent e) {
PrinterJob job = PrinterJob.getPrinterJob();
if (job.printDialog()) {
try {
job.print();
} catch (Exception prt) {
System.err.println(prt.getMessage());
}
}
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|