public void update(double deltaTime){
		// If the display has been resized, move all elements belonging to this CompositeElement into the same relative position.
		// i.e. if CompositeElement is at bottom right of screen, after resizing will still be at bottom right of screen.
		if(Display.wasResized()){
			for (GUIElement element : compositeElements.values()) {
				element.setX(element.getAnchorX()+(x-anchorX));
				element.setY(element.getAnchorY()+(y-anchorY));
	    	}
		}
		if(render){
			for (GUIElement element : compositeElements.values()) {
				element.update(deltaTime);
	    	}
		}
		
		// Perform a scale operation:
		if(performScaling){
			setScale(scaleTarget);
			for (GUIElement element : compositeElements.values()) {
				element.performScale(scaleTarget, timeToScale);
				//If you want the scaling to be done from x,y of this CompositeElement, not the centre of each object:
				//element.setX(element.getAnchorX()*getScale());
				//element.setY(element.getAnchorY()*getScale());
	    	}
			performScaling=false;
		}
	}