equal
deleted
inserted
replaced
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, |