private void setUpNextAndPreviousButtons() {
		// create the image icons for the buttons
		Icon prevIcon = new ImageIcon(
				SoundExplorer.class.getResource("leftArrow.gif"),
				"previous index");
		Icon nextIcon = new ImageIcon(
				SoundExplorer.class.getResource("rightArrow.gif"), "next index");
		// create the arrow buttons
		this.xPrevButton = new JButton(prevIcon);
		this.xNextButton = new JButton(nextIcon);
		this.yPrevButton = new JButton(prevIcon);
		this.yNextButton = new JButton(nextIcon);

		// set the tool tip text
		this.xNextButton.setToolTipText("Click to go to the next x value");
		this.xPrevButton.setToolTipText("Click to go to the previous x value");
		this.yNextButton.setToolTipText("Click to go to the next y value");
		this.yPrevButton.setToolTipText("Click to go to the previous y value");

		// set the sizes of the buttons
		int prevWidth = prevIcon.getIconWidth() + 2;
		int nextWidth = nextIcon.getIconWidth() + 2;
		int prevHeight = prevIcon.getIconHeight() + 2;
		int nextHeight = nextIcon.getIconHeight() + 2;
		Dimension prevDimension = new Dimension(prevWidth, prevHeight);
		Dimension nextDimension = new Dimension(nextWidth, nextHeight);
		this.xPrevButton.setPreferredSize(prevDimension);
		this.yPrevButton.setPreferredSize(prevDimension);
		this.xNextButton.setPreferredSize(nextDimension);
		this.yNextButton.setPreferredSize(nextDimension);

		// handle previous x button press
		this.xPrevButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(final ActionEvent evt) {
				PictureExplorer.this.xIndex--;
				if (PictureExplorer.this.xIndex < 0) {
					PictureExplorer.this.xIndex = 0;
				}
				PictureExplorer.this.displayPixelInformation(
						PictureExplorer.this.xIndex,
						PictureExplorer.this.yIndex);
			}
		});

		// handle previous y button press
		this.yPrevButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(final ActionEvent evt) {
				PictureExplorer.this.yIndex--;
				if (PictureExplorer.this.yIndex < 0) {
					PictureExplorer.this.yIndex = 0;
				}
				PictureExplorer.this.displayPixelInformation(
						PictureExplorer.this.xIndex,
						PictureExplorer.this.yIndex);
			}
		});

		// handle next x button press
		this.xNextButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(final ActionEvent evt) {
				PictureExplorer.this.xIndex++;
				if (PictureExplorer.this.xIndex >= PictureExplorer.this.picture
						.getWidth()) {
					PictureExplorer.this.xIndex = PictureExplorer.this.picture
							.getWidth() - 1;
				}
				PictureExplorer.this.displayPixelInformation(
						PictureExplorer.this.xIndex,
						PictureExplorer.this.yIndex);
			}
		});

		// handle next y button press
		this.yNextButton.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(final ActionEvent evt) {
				PictureExplorer.this.yIndex++;
				if (PictureExplorer.this.yIndex >= PictureExplorer.this.picture
						.getHeight()) {
					PictureExplorer.this.yIndex = PictureExplorer.this.picture
							.getHeight() - 1;
				}
				PictureExplorer.this.displayPixelInformation(
						PictureExplorer.this.xIndex,
						PictureExplorer.this.yIndex);
			}
		});
	}