home *** CD-ROM | disk | FTP | other *** search
- package sun.awt.windows;
-
- import java.applet.Applet;
- import java.awt.Component;
- import java.awt.Graphics;
- import netscape.applet.AppletHostToolkit;
-
- public class WAppletHostToolkit extends AppletHostToolkit {
- // $FF: renamed from: x int
- private int field_0;
- // $FF: renamed from: y int
- private int field_1;
- private int width;
- private int height;
- private int pNativeContext;
-
- private native void getNativeData(int var1);
-
- public void printApplet(Applet var1, String var2, int var3) {
- this.getNativeData(var3);
- System.err.println("printApplet: x=" + this.field_0 + " y=" + this.field_1 + " width=" + this.width + " height=" + this.height + " pNativeContext=" + this.pNativeContext);
- WGraphics var4 = new WGraphics(this.pNativeContext, this.field_0, this.field_1);
- if (var4 != null) {
- try {
- ((Component)var1).printAll(var4);
- } catch (Exception var6) {
- System.err.println(var6);
- ((Throwable)var6).printStackTrace();
- }
-
- ((Graphics)var4).dispose();
- } else {
- System.err.println("Could not get Graphics handle.");
- }
- }
- }
-