public void resize(double scaleFactor){

		scaleFactor = (double)(Gui.getSlidePanel().getWidth())
		/ (double)slideDimension.width;

		if (Debug.video) System.out.println("VideoPlayer -> resize -> resize called");

		if ((null != player) && (realizeComplete) && (!Gui.isVideoFullScreenOn())){
			// Calculate the new scaled coordinates and dimensions.

			scaledXCoord = (int) (xCoord * scaleFactor);
			scaledYCoord = (int) (yCoord * scaleFactor);
			scaledXDim = (int) (xDim * scaleFactor);
			scaledYDim = (int) (yDim * scaleFactor);

			// Set the new dimensions, depending if controls are present or not.
			if (true == controls){
				mediaPanel.setBounds(0, 0, scaledXDim, scaledYDim+25);
				outerPanel.setBounds(scaledXCoord, scaledYCoord, scaledXDim, scaledYDim+25);
				controlComponent.setBounds(0, scaledYDim, scaledXDim, 25);
			}
			else{
				mediaPanel.setBounds(0, 0, scaledXDim, scaledYDim);
				outerPanel.setBounds(scaledXCoord, scaledYCoord, scaledXDim, scaledYDim);
			}
			videoComponent.setBounds(0, 0, scaledXDim, scaledYDim);
			MouseMonitor.rescale(scaledXDim, scaledYDim);
			MouseMonitor.reposition(scaledXCoord, scaledYCoord);
			if (Debug.video) System.out.println("VideoPlayer -> resize -> mediaPanel new size : " + mediaPanel.getSize());
		}
	}