src/share/classes/java/awt/KeyboardFocusManager.java

Print this page

        

*** 2476,2488 **** if (hwFocusRequest.addLightweightRequest(descendant, temporary, cause)) { manager.enqueueKeyEvents(time, descendant); } ! if (focusLog.isLoggable(PlatformLogger.FINEST)) focusLog.finest("3. SNFH_HANDLED for lightweight" + descendant + " in " + heavyweight); return SNFH_SUCCESS_HANDLED; } else { if (!focusedWindowChangeAllowed) { // For purposes of computing oldFocusedWindow, we should look at // the second to last HeavyweightFocusRequest on the queue iff the --- 2476,2489 ---- if (hwFocusRequest.addLightweightRequest(descendant, temporary, cause)) { manager.enqueueKeyEvents(time, descendant); } ! if (focusLog.isLoggable(PlatformLogger.FINEST)) { focusLog.finest("3. SNFH_HANDLED for lightweight" + descendant + " in " + heavyweight); + } return SNFH_SUCCESS_HANDLED; } else { if (!focusedWindowChangeAllowed) { // For purposes of computing oldFocusedWindow, we should look at // the second to last HeavyweightFocusRequest on the queue iff the
*** 2499,2520 **** } if (focusedWindowChanged(heavyweight, (hwFocusRequest != null) ? hwFocusRequest.heavyweight : nativeFocusedWindow)) { ! if (focusLog.isLoggable(PlatformLogger.FINEST)) focusLog.finest("4. SNFH_FAILURE for " + descendant); return SNFH_FAILURE; } } manager.enqueueKeyEvents(time, descendant); heavyweightRequests.add (new HeavyweightFocusRequest(heavyweight, descendant, temporary, cause)); ! if (focusLog.isLoggable(PlatformLogger.FINEST)) focusLog.finest("5. SNFH_PROCEED for " + descendant); return SNFH_SUCCESS_PROCEED; } } } --- 2500,2523 ---- } if (focusedWindowChanged(heavyweight, (hwFocusRequest != null) ? hwFocusRequest.heavyweight : nativeFocusedWindow)) { ! if (focusLog.isLoggable(PlatformLogger.FINEST)) { focusLog.finest("4. SNFH_FAILURE for " + descendant); + } return SNFH_FAILURE; } } manager.enqueueKeyEvents(time, descendant); heavyweightRequests.add (new HeavyweightFocusRequest(heavyweight, descendant, temporary, cause)); ! if (focusLog.isLoggable(PlatformLogger.FINEST)) { focusLog.finest("5. SNFH_PROCEED for " + descendant); + } return SNFH_SUCCESS_PROCEED; } } }