src/share/classes/sun/awt/SunToolkit.java

Print this page

        

@@ -485,11 +485,11 @@
         // otherwise have to be modified to precisely identify
         // system-generated events.
         setSystemGenerated(event);
         AppContext eventContext = targetToAppContext(event.getSource());
         if (eventContext != null && !eventContext.equals(appContext)) {
-            if (log.isLoggable(PlatformLogger.FINE)) {
+            if (log.isLoggable(PlatformLogger.Level.FINE)) {
                 log.fine("Event posted on wrong app context : " + event);
             }
         }
         PostEventQueue postEventQueue =
             (PostEventQueue)appContext.get(POST_EVENT_QUEUE_KEY);

@@ -878,11 +878,11 @@
             //best possible similarity is 0 (no scale, no insets).
             //It's found while the experiments that good-looking result is achieved
             //with scale factors x1, x3/4, x2/3, xN, x1/N.
             Image im = i.next();
             if (im == null) {
-                if (log.isLoggable(PlatformLogger.FINER)) {
+                if (log.isLoggable(PlatformLogger.Level.FINER)) {
                     log.finer("SunToolkit.getScaledIconImage: " +
                               "Skipping the image passed into Java because it's null.");
                 }
                 continue;
             }

@@ -894,11 +894,11 @@
             int ih;
             try {
                 iw = im.getWidth(null);
                 ih = im.getHeight(null);
             } catch (Exception e){
-                if (log.isLoggable(PlatformLogger.FINER)) {
+                if (log.isLoggable(PlatformLogger.Level.FINER)) {
                     log.finer("SunToolkit.getScaledIconImage: " +
                               "Perhaps the image passed into Java is broken. Skipping this icon.");
                 }
                 continue;
             }

@@ -969,11 +969,11 @@
         g.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
                            RenderingHints.VALUE_INTERPOLATION_BILINEAR);
         try {
             int x = (width - bestWidth) / 2;
             int y = (height - bestHeight) / 2;
-            if (log.isLoggable(PlatformLogger.FINER)) {
+            if (log.isLoggable(PlatformLogger.Level.FINER)) {
                 log.finer("WWindowPeer.getScaledIconData() result : " +
                         "w : " + width + " h : " + height +
                         " iW : " + bestImage.getWidth(null) + " iH : " + bestImage.getHeight(null) +
                         " sim : " + bestSimilarity + " sf : " + bestScaleFactor +
                         " adjW : " + bestWidth + " adjH : " + bestHeight +

@@ -987,11 +987,11 @@
     }
 
     public static DataBufferInt getScaledIconData(java.util.List<Image> imageList, int width, int height) {
         BufferedImage bimage = getScaledIconImage(imageList, width, height);
         if (bimage == null) {
-             if (log.isLoggable(PlatformLogger.FINER)) {
+             if (log.isLoggable(PlatformLogger.Level.FINER)) {
                  log.finer("SunToolkit.getScaledIconData: " +
                            "Perhaps the image passed into Java is broken. Skipping this icon.");
              }
             return null;
         }