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

Print this page

        

@@ -485,12 +485,14 @@
         // 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)) {
             log.fine("Event posted on wrong app context : " + event);
         }
+        }
         PostEventQueue postEventQueue =
             (PostEventQueue)appContext.get(POST_EVENT_QUEUE_KEY);
         if (postEventQueue != null) {
             postEventQueue.postEvent(event);
         }