public Java2Surface(Box root, boolean framed) { super(root, framed); }
- public void blit(PixelBuffer s, int sx, int sy, int dx, int dy, int dx2, int dy2) {
- if (ourGraphics == null) {
- ourGraphics = window.getGraphics();
-
- // sometimes jdk1.4 doesn't set the clip properly when we're in the middle of a resize
- ourGraphics.setClip(insets.left, insets.top, root.width + insets.left, root.height + insets.top);
- }
- _doDrawImage(window.getGraphics(), ((AWTPixelBuffer)s).i, dx + insets.left, dy + insets.top, dx2 + insets.left, dy2 + insets.top,
- sx, sy, sx + (dx2 - dx), sy + (dy2 - dy), null);
- }
-
protected void _setMinimized(boolean b) {
- if (frame == null) {
- if (Log.on) Log.log(this, "JDK 1.2 can only minimize frames, not windows");
- return;
- }
- if (b) frame.setState(java.awt.Frame.ICONIFIED);
+ if (frame == null) Log.log(this, "JDK 1.2 can only minimize frames, not windows");
+ else if (b) frame.setState(java.awt.Frame.ICONIFIED);
else frame.setState(java.awt.Frame.NORMAL);
}
protected String getDescriptiveName() { return isJava14 ? "Java 1.4+ JVM" : "Java 1.2+ JVM"; }
- protected void _newBrowserWindow(String url) {
- /*
- FIXME
- if (Main.applet == null) {
- if (Log.on) Log.log(this, "Main.applet is null; cannot invoke showDocument()");
- return;
- }
- if (Log.on) Log.log(this, "asking browser to show URL " + url);
- try {
- Main.applet.getAppletContext().showDocument(new URL(url), "_blank");
- } catch (MalformedURLException e) {
- if (Log.on) Log.log(this, e);
- }
- */
- }
-
}