public void mouseClicked(MouseEvent e){
			
			//sets the string details equal to the click count.	
			details = ("You clicked: "+ e.getClickCount());
			
			//if the button that was pressed is equal to the 
			//left button, middle wheel, or the right button
			//the string details gets this text added on depending which one is
			//clicked on.
			if(e.getButton() == MouseEvent.BUTTON1){
				details += (" with left mouse button");
			}else if(e.getButton() == MouseEvent.BUTTON2){
				details += (" with the middle mouse button");
			}else if(e.getButton() == MouseEvent.BUTTON3){
				details += (" with the right mouse button");
			}
		//sets our status bar's text to the outcome of the string details.
			statusbar.setText(details);
		}