public void mouseExited(MouseEvent mouseEvent) {
        Iterator<PComponent> it = components.iterator();
        while (it.hasNext()) {
            PComponent comp = it.next();
            if (shouldHandleMouse) {
                if (comp.shouldHandleMouse())
                    comp.mouseExited(mouseEvent);
            }
            else {
                if (comp instanceof PFrame) {
                    for (PComponent component : ((PFrame) comp).getComponents())
                        if (component.forceMouse())
                            component.mouseExited(mouseEvent);
                }
                else if (comp.forceMouse())
                    comp.mouseExited(mouseEvent);
            }
        }
    }