src/windows/classes/sun/awt/windows/WComponentPeer.java
Print this page
*** 358,368 ****
// Call the native code
nativeHandleEvent(e);
}
void handleJavaFocusEvent(FocusEvent fe) {
! if (focusLog.isLoggable(PlatformLogger.FINER)) focusLog.finer(fe.toString());
setFocus(fe.getID() == FocusEvent.FOCUS_GAINED);
}
native void setFocus(boolean doSetFocus);
--- 358,370 ----
// Call the native code
nativeHandleEvent(e);
}
void handleJavaFocusEvent(FocusEvent fe) {
! if (focusLog.isLoggable(PlatformLogger.FINER)) {
! focusLog.finer(fe.toString());
! }
setFocus(fe.getID() == FocusEvent.FOCUS_GAINED);
}
native void setFocus(boolean doSetFocus);
*** 691,701 ****
if (wpeer == null) {
return rejectFocusRequestHelper("WARNING: Parent window's peer is null");
}
boolean res = wpeer.requestWindowFocus(cause);
! if (focusLog.isLoggable(PlatformLogger.FINER)) focusLog.finer("Requested window focus: " + res);
// If parent window can be made focused and has been made focused(synchronously)
// then we can proceed with children, otherwise we retreat.
if (!(res && parentWindow.isFocused())) {
return rejectFocusRequestHelper("Waiting for asynchronous processing of the request");
}
--- 693,705 ----
if (wpeer == null) {
return rejectFocusRequestHelper("WARNING: Parent window's peer is null");
}
boolean res = wpeer.requestWindowFocus(cause);
! if (focusLog.isLoggable(PlatformLogger.FINER)) {
! focusLog.finer("Requested window focus: " + res);
! }
// If parent window can be made focused and has been made focused(synchronously)
// then we can proceed with children, otherwise we retreat.
if (!(res && parentWindow.isFocused())) {
return rejectFocusRequestHelper("Waiting for asynchronous processing of the request");
}
*** 711,721 ****
}
return false;
}
private boolean rejectFocusRequestHelper(String logMsg) {
! if (focusLog.isLoggable(PlatformLogger.FINER)) focusLog.finer(logMsg);
WKeyboardFocusManagerPeer.removeLastFocusRequest((Component)target);
return false;
}
public Image createImage(ImageProducer producer) {
--- 715,727 ----
}
return false;
}
private boolean rejectFocusRequestHelper(String logMsg) {
! if (focusLog.isLoggable(PlatformLogger.FINER)) {
! focusLog.finer(logMsg);
! }
WKeyboardFocusManagerPeer.removeLastFocusRequest((Component)target);
return false;
}
public Image createImage(ImageProducer producer) {
*** 1078,1089 ****
* @since 1.7
*/
@SuppressWarnings("deprecation")
public void applyShape(Region shape) {
if (shapeLog.isLoggable(PlatformLogger.FINER)) {
! shapeLog.finer(
! "*** INFO: Setting shape: PEER: " + this
+ "; TARGET: " + target
+ "; SHAPE: " + shape);
}
if (shape != null) {
--- 1084,1094 ----
* @since 1.7
*/
@SuppressWarnings("deprecation")
public void applyShape(Region shape) {
if (shapeLog.isLoggable(PlatformLogger.FINER)) {
! shapeLog.finer("*** INFO: Setting shape: PEER: " + this
+ "; TARGET: " + target
+ "; SHAPE: " + shape);
}
if (shape != null) {