private void initComponents() 
    {
    	    
    	this.setLayout(new GridLayout(view.getHeight(), view.getWidth()));
    	this.vakjes = new Vakje[view.getHeight()][view.getWidth()];
    	
    	for (Tile t : view.getTiles())
    	{
    		vakjes[t.getY()][t.getX()] = new Vakje();
			this.add(vakjes[t.getY()][t.getX()]);
			
    		if (t instanceof TileWall)
    		{
    			vakjes[t.getY()][t.getX()].addObject(new Muur());
    		}
    		
			
    	}
    	
    	for (Entity e : view.getEntities())
    	{
    		if (e instanceof EntityPacman)
    		{
    			this.pacman = new Pacman("pacman.png");
    			vakjes[e.y][e.x].addObject(pacman);
    		}
    	}

        addKeyListener(this);
        
        requestFocus();
        repaint();
    }