src/windows/classes/sun/awt/windows/WToolkit.java

Print this page




  77     private Hashtable<String,FontPeer> cacheFontPeer;
  78 
  79     // Windows properties
  80     private WDesktopProperties  wprops;
  81 
  82     // Dynamic Layout Resize client code setting
  83     protected boolean dynamicLayoutSetting = false;
  84 
  85     //Is it allowed to generate events assigned to extra mouse buttons.
  86     //Set to true by default.
  87     private static boolean areExtraMouseButtonsEnabled = true;
  88 
  89     /**
  90      * Initialize JNI field and method IDs
  91      */
  92     private static native void initIDs();
  93     private static boolean loaded = false;
  94     public static void loadLibraries() {
  95         if (!loaded) {
  96             java.security.AccessController.doPrivileged(
  97                           new sun.security.action.LoadLibraryAction("awt"));





  98             loaded = true;
  99         }
 100     }
 101 
 102     private static native String getWindowsVersion();
 103 
 104     static {
 105         loadLibraries();
 106         initIDs();
 107 
 108         // Print out which version of Windows is running
 109         if (log.isLoggable(PlatformLogger.FINE)) {
 110             log.fine("Win version: " + getWindowsVersion());
 111         }
 112 
 113         AccessController.doPrivileged(
 114             new PrivilegedAction <Void> ()
 115         {
 116             public Void run() {
 117                 String browserProp = System.getProperty("browser");




  77     private Hashtable<String,FontPeer> cacheFontPeer;
  78 
  79     // Windows properties
  80     private WDesktopProperties  wprops;
  81 
  82     // Dynamic Layout Resize client code setting
  83     protected boolean dynamicLayoutSetting = false;
  84 
  85     //Is it allowed to generate events assigned to extra mouse buttons.
  86     //Set to true by default.
  87     private static boolean areExtraMouseButtonsEnabled = true;
  88 
  89     /**
  90      * Initialize JNI field and method IDs
  91      */
  92     private static native void initIDs();
  93     private static boolean loaded = false;
  94     public static void loadLibraries() {
  95         if (!loaded) {
  96             java.security.AccessController.doPrivileged(
  97                 new java.security.PrivilegedAction<Void>() {
  98                     public Void run() {
  99                         System.loadLibrary("awt");
 100                         return null;
 101                     }
 102                 });
 103             loaded = true;
 104         }
 105     }
 106 
 107     private static native String getWindowsVersion();
 108 
 109     static {
 110         loadLibraries();
 111         initIDs();
 112 
 113         // Print out which version of Windows is running
 114         if (log.isLoggable(PlatformLogger.FINE)) {
 115             log.fine("Win version: " + getWindowsVersion());
 116         }
 117 
 118         AccessController.doPrivileged(
 119             new PrivilegedAction <Void> ()
 120         {
 121             public Void run() {
 122                 String browserProp = System.getProperty("browser");