< prev index next >

src/java.desktop/unix/classes/sun/awt/PlatformGraphicsInfo.java

Print this page

        

@@ -24,19 +24,24 @@
  */
 
 package sun.awt;
 
 import java.awt.GraphicsEnvironment;
+import java.awt.Toolkit;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 
 public class PlatformGraphicsInfo {
 
     public static GraphicsEnvironment createGE() {
         return new X11GraphicsEnvironment();
     }
 
+    public static Toolkit createToolkit() {
+        return new sun.awt.X11.XToolkit();
+    }
+
     /**
       * Called from java.awt.GraphicsEnvironment when
       * to check if on this platform, the JDK should default to
       * headless mode, in the case the application did specify
       * a value for the java.awt.headless system property.
< prev index next >