aspose file tools*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printing the Screen Contents" Watch "Printing the Screen Contents" New topic
Author

Printing the Screen Contents

Orissa Guy
Greenhorn

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
http://www.coderanch.com/t/340401/GUI/java/create-image-JPanel-contents
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing the Screen Contents
 
Similar Threads
Event Handling Q
copyrite protection
Print something in java.
Help with GUI assignment.
Printing the applet screen