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