Point pointerPos = MouseDispatcher.convertPoint(null, absPointerPos,
topLevelWnd);
Component compUnderCursor = topLevelWnd.findComponentAt(pointerPos);
// if (compUnderCursor == this ||
// compUnderCursor.getCursorAncestor() == this) {
NativeWindow wnd = topLevelWnd.getNativeWindow();
if (compUnderCursor != null && wnd != null) {
compUnderCursor.getRealCursor().getNativeCursor()
.setCursor(wnd.getId());
}
// }
}
}
}