Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing the Screen Contents

 
Orissa Guy
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic