Meaningless Drivel is fun!
The moose likes Java in General and the fly likes Printing the Screen Contents Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing the Screen Contents" Watch "Printing the Screen Contents" New topic

Printing the Screen Contents

Orissa Guy

Joined: Mar 27, 2005
Posts: 3
I am using java.netscape classes to develop a GUI. Now i want to take the Print of the GUI which is getting displayed on the screen. I tried with Implementing the interface Printable and providing the code for print() and print(Graphics,PageFormat, int) methods. My problem is when ever i try to take a graphics object of the GUI its returning me netscape.applications.Graphics Object but the print function needs Java.AWT.Graphics Object.

So is there any way to convert this Object to AWT.Graphics Object ?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
I agree. Here's the link:
subject: Printing the Screen Contents
jQuery in Action, 3rd edition