public GranosSimulator() {

        addMouseListener(this);
        addMouseMotionListener(this);
        try {

            granoImage = ImageIO.read(this.getClass().getResourceAsStream("/pruebagranos/grano.png"));
            grano2Image = ImageIO.read(this.getClass().getResourceAsStream("/pruebagranos/grano2.png"));
            for (int i = 0; i < cara.length; i++) {

                cara[i] = ImageIO.read(this.getClass().getResourceAsStream("/pruebagranos/RodolfoCaraPestañeo" + i + ".png"));

            }
            mascarilla = ImageIO.read(this.getClass().getResourceAsStream("/pruebagranos/MascarillaRodolfo.png"));

        } catch (IOException ex) {
            Logger.getLogger(GranosSimulator.class.getName()).log(Level.SEVERE, null, ex);
        }
    }