boolean (MouseEvent e) { if (myChild == null || myChild.isDisposed()) return false; Rectangle childBounds = myChild.getBounds(); childBounds.setLocation(myChild.getLocationOnScreen()); return myMouseMovementTracker.isMovingTowards(e, childBounds); }