public Location getLocation(MouseEvent e){
		Location mouseLocation = null;
		int relative_X = e.getX() - margin;
		int relative_Y = e.getY() - headHeight;
		int temp_X = 0;
		int temp_Y = 0;
		if(relative_X >=0 && relative_X <= colons*size){
			if(relative_Y >=0 && relative_Y <= rows*size){
				for(int i=1;i<colons+1;i++){
					if(i*size < relative_X){
						temp_X = i;
					}
				}
				for(int j=1;j<rows+1;j++){
					if(j*size < relative_Y){
						temp_Y = j;
					}
				}
				mouseLocation = new Location(temp_X,temp_Y);
			}
		}
		if(mouseLocation != null){
			return mouseLocation;
		}
		else{
			return null;
		}
	}