@Override
	public void chartMouseClicked(ChartMouseEvent event) {
		if(parentNode!=null){
			try{
				boolean updated = false;
				ChartEntity chartentity = event.getEntity();
				Node[] tempNode = parentNode.getChildren();
		
				String result = chartentity.getToolTipText();
				int cutOff = result.lastIndexOf(58);
				result = result.substring(0, cutOff);
				
				for(int i=0;i<tempNode.length; i++)
					if(result.equals(tempNode[i].getName()) && !tempNode[i].isChildNode()){
						update(tempNode[i]);
						updated = true;
						break;
					}
				if(!updated)
					throw new NullPointerException();
			}
			catch(NullPointerException e){
				JOptionPane.showMessageDialog(new JFrame(), "The element you have clicked on is not a valid area to scan further." +
															" Some Possibilities as to why : \n" +
															" - The location is a file and not a directory.\n" +
															" - The area you have clicked on is not a valid scanning area.", "Bottom level", JOptionPane.ERROR_MESSAGE);
			}
		}
		else{
			
		}
	}