jdk/src/java.desktop/share/classes/sun/awt/KeyboardFocusManagerPeerImpl.java
changeset 41805 d30817604de5
parent 37694 c064aefc5a2f
equal deleted inserted replaced
41804:9b7750392368 41805:d30817604de5
   140         SunToolkit.postEvent(SunToolkit.targetToAppContext(lightweightChild), fg);
   140         SunToolkit.postEvent(SunToolkit.targetToAppContext(lightweightChild), fg);
   141         return true;
   141         return true;
   142     }
   142     }
   143 
   143 
   144     // WARNING: Don't call it on the Toolkit thread.
   144     // WARNING: Don't call it on the Toolkit thread.
   145     public static boolean requestFocusFor(Component target, FocusEvent.Cause cause) {
   145     public static void requestFocusFor(Component target, FocusEvent.Cause cause) {
   146         return AWTAccessor.getComponentAccessor().requestFocus(target, cause);
   146         AWTAccessor.getComponentAccessor().requestFocus(target, cause);
   147     }
   147     }
   148 
   148 
   149     // WARNING: Don't call it on the Toolkit thread.
   149     // WARNING: Don't call it on the Toolkit thread.
   150     public static int shouldNativelyFocusHeavyweight(Component heavyweight,
   150     public static int shouldNativelyFocusHeavyweight(Component heavyweight,
   151                                                      Component descendant,
   151                                                      Component descendant,