@Override
    public void paint(Graphics g) {
        if(originalMap != null)
        {
            this.setResizable(true);
            
            vilasMap = originalMap.getScaledInstance(4*originalMap.getWidth(), 4*originalMap.getHeight(), Image.SCALE_FAST);
            this.setSize(originalMap.getWidth()*4, originalMap.getHeight()*4);
            insets = getInsets();
            g.drawImage(vilasMap, insets.left, insets.top, rootPane);
        }
        /*
        if (colorRed == false) {
            for (Patch p : forestPatches) {
                Master.color = p.age;
                Master.x = p.x;
                Master.y = p.y;

                color += 110;
                if (color > 255) {
                    color = 255;
                }
                Color c = new Color(0, color, 0);
                Graphics g1 = g;
                g1.setColor(c);
                //g1.drawRect(10 + x, 32 + y, 1, 1);
                validate();
                g1.fillRect(10 + x, 32 + y, 1, 1);
                validate();
                repaint();
            }
        } else {
                color += 130;
                if (color > 255) {
                    color = 255;
                }
                Color c = new Color(color, 0, 0);
                Graphics g1 = g;
                g1.setColor(c);
                //g1.drawRect(10 + x, 32 + y, 1, 1);
                validate();
                g1.fillRect(10 + x, 32 + y, 10, 10);
                validate();
                repaint();
        }
        */
    }