public void display(){

		Dimension currentPanelSize;  // Current size of the presentation panel.
		double sizeFactor;  // Factor between 800x600 grid and current panel size.

		if (Debug.audio) System.out.println("AudioPlayer -> display called");

		if (null != player){
			currentPanelSize = Gui.getSlidePanel().getSize();
			// Must typecast here, otherwise integer maths is performed.
			sizeFactor = ((double)currentPanelSize.width / (double)800);
			if (Debug.audio) System.out.println("AudioPlayer -> display -> scale factor : " + sizeFactor);

			// Now apply the scale to the desired coordinates and dimensions.
			// These scaled results will be used in this class from now on.
			scaledXCoord = (int) (xCoord * sizeFactor);
			if (Debug.audio) System.out.println("AudioPlayer -> display -> scaled xCoord : " + scaledXCoord);
			scaledYCoord = (int) (yCoord * sizeFactor);
			if (Debug.audio) System.out.println("AudioPlayer -> display -> scaled yCoord : " + scaledYCoord);
			scaledXDim = (int) (250 * sizeFactor);
			if (Debug.audio) System.out.println("AudioPlayer -> display -> scaled xDim : " + scaledXDim);

			// Set the size of the JPanel according to input parameters.
			mediaPanel.setBounds(scaledXCoord, 	scaledYCoord, scaledXDim, 25);

			// Add the JPanel to the main window.
			Gui.getSlidePanel().add(mediaPanel, new Integer(super.getZOrder()));
			Gui.getSlidePanel().repaint();

			// If autoplay is True, then begin playback immediately.
			if (autoplay) {
				if (Debug.audio) System.out.println("AudioPlayer -> display -> Autoplay enabled");
				player.start();
			}
			// If autoplay is False, then display the stopped player.
			else {
				if (Debug.audio) System.out.println("AudioPlayer -> display -> Autoplay disabled");
				player.realize();
			}
		}
	}