2004/01/28 09:56:33
[org.ibex.core.git] / src / org / xwt / plat / Java2.java
index 8a6ed7c..bfe57ed 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright 2003 Adam Megacz, see the COPYING file for licensing [GPL]
+// Copyright 2004 Adam Megacz, see the COPYING file for licensing [GPL]
 package org.xwt.plat;
 
 import java.awt.*;
@@ -31,8 +31,8 @@ public class Java2 extends AWT {
                 Method m = java.awt.Toolkit.class.getMethod("setDynamicLayout", new Class[] { Boolean.class });
                 m.invoke(t, new Object[] { Boolean.TRUE });
             } catch (Exception e) {
-                Log.log(this, "Exception while trying to enable AWT Dynamic Layout");
-                Log.log(this, e);
+                Log.info(this, "Exception while trying to enable AWT Dynamic Layout");
+                Log.info(this, e);
             }
         }
         javax.swing.FocusManager.setCurrentManager(new javax.swing.FocusManager() {
@@ -77,7 +77,7 @@ public class Java2 extends AWT {
                         else return null;
 
                     } catch (Throwable e) {
-                        if (Log.on) Log.log(this, "No proxy information found in Java Plugin classes");
+                        if (Log.on) Log.info(this, "No proxy information found in Java Plugin classes");
                         return null;
                     }
                 }});
@@ -94,7 +94,7 @@ public class Java2 extends AWT {
                              Constructor ctor = java14SurfaceClass.getConstructor(new Class[] { Box.class, Boolean.TYPE });
                              return (Surface)ctor.newInstance(new Object[] { root, new Boolean(framed) });
                         } catch (Exception e) {
-                            Log.log(this, e);
+                            Log.info(this, e);
                             throw new LinkageError("error: " + e);
                         }
                     } else {
@@ -115,7 +115,7 @@ public class Java2 extends AWT {
         public Java2Surface(Box root, boolean framed) { super(root, framed); }
 
         protected void _setMinimized(boolean b) {
-            if (frame == null) Log.log(this, "JDK 1.2 can only minimize frames, not windows");
+            if (frame == null) Log.info(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);
         }
@@ -140,14 +140,14 @@ public class Java2 extends AWT {
         
         protected void _setMaximized(boolean m) {
             if (frame == null) {
-                if (Log.on) Log.log(this, "JDK 1.4 can only maximize frames, not windows");
+                if (Log.on) Log.info(this, "JDK 1.4 can only maximize frames, not windows");
                 return;
             }
             frame.setExtendedState(m ? Frame.MAXIMIZED_BOTH : (minimized ? Frame.ICONIFIED : Frame.NORMAL));
         }
         protected void _setMinimized(boolean m) {
             if (frame == null) {
-                if (Log.on) Log.log(this, "JDK 1.4 can only minimize frames, not windows");
+                if (Log.on) Log.info(this, "JDK 1.4 can only minimize frames, not windows");
                 return;
             }
             frame.setExtendedState(m ? Frame.ICONIFIED : (maximized ? Frame.MAXIMIZED_BOTH : Frame.NORMAL));
@@ -177,6 +177,7 @@ public class Java2 extends AWT {
         private SampleModel sm = null;
         private DataBuffer buf = null;
 
+        // this doens't seem to work on Windows
         public void drawGlyph(Picture source, int dx, int dy, int cx1, int cy1, int cx2, int cy2, int rgb) {
             AWTPicture src = (AWTPicture)source;
             src.init();