public static boolean estaDentroRectangulo(Point pGrande, Dimension dGrande, Point pChico, Dimension dChico){
        double gx,gy,gx2,gy2;
        double cx,cy,cx2,cy2;
        gx = pGrande.getX();
        gy = pGrande.getY();
        gx2 = gx+dGrande.getWidth();
        gy2 = gy+dGrande.getHeight();
        cx = pChico.getX();
        cy = pChico.getY();
        cx2 = cx + dChico.getWidth();
        cy2 = cy + dChico.getHeight();
        
        /*System.out.println("////////////////////////////////////////////////////////");
        System.out.println(pGrande +" --> "+ dGrande);
        System.out.println(pChico + " --> " + dChico);
        System.out.println("gx="+gx + ", gy="+gy+"; gx2="+gx2+", gy2="+gy2);
        System.out.println("cx="+cx + ", cy="+cy+"; cx2="+cx2+", cy2="+cy2);
        System.out.println("////////////////////////////////////////////////////////");*/
        
        boolean b =((cx>=gx)&&(cx<=gx2)&&(cx2>=gx)&&(cx2<=gx2)&&
            (cy>=gy)&&(cy<=gy2)&&(cy2>=gy)&&(cy2<=gy2)); 
        System.out.println(b);
        return b;
        
        
    }