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 ?