This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
It is sorta covered in the JavaRanch Style Guide.
subject: Printing the Screen Contents
It's not a secret anymore!