public MyJCanvas()
		{
			addMouseListener(new MouseAdapter() 		
			{
				public void mousePressed (MouseEvent e)
				{	    

					mouseX = e.getX();
					mouseY = e.getY();
					if (mouseInRange(mouseX, mouseY))
					{
						xPressed = ((minX)+((mouseX)*((maxX - minX)/W)));
						yPressed = ((maxY)-((mouseY)*((maxY - minY)/H)));
					}
					dragging = false;
				}
				public void mouseReleased (MouseEvent e)
				{
					if(y - yZoom != 0 && x - xZoom != 0 && zoomSelect && mouseInRange(e.getX(), e.getY()))
					{
						mouseXZoom = e.getX();
						mouseYZoom = e.getY();
						xZoom = (minX)+((mouseXZoom)*((maxX - minX)/W));
						yZoom = (maxY)-((mouseYZoom)*((maxY - minY)/H));

						minX = Math.min(xPressed, xZoom);
						maxX = Math.max(xPressed, xZoom);
						minY = Math.min(yPressed, yZoom);
						maxY = Math.max(yPressed  , yZoom);

						axisWiz.setAxisLabels(axisLabel, maxY, (maxY + minY)/2, 
								minY, minX, (maxX + minX)/2, maxX);
						background();
						//repaint();
						reDisplayFrame();
					}
					zoomSelect = false;
					dragging = false;   	
				}
			});

			addMouseMotionListener(new MouseMotionAdapter() 
			{
				public void mouseDragged (MouseEvent e)
				{
					xDrag = e.getX();
					yDrag = e.getY();
					if (mouseInRange(xDrag, yDrag))
					{
						dragging = true;
						if (zoomSelect  && !animationStart) repaint();
					}
					else
					{
						dragging = false;
						zoomSelect = false;
					} 
				}
			});
		}