public Node update(){
		if(text.startsWith("Scan of")==true){
			if(ProgramWindow.isScanning()==false && ProgramWindow.getCanceled()==false){
				JOptionPane.showMessageDialog(new JFrame(), "Partition Scan Complete", "Complete", JOptionPane.INFORMATION_MESSAGE);
				text = "Scan Complete, Click Again to Rescan or Select a New Partition";
				this.setText(text);	
				this.setBackground(Color.green);
				this.setEnabled(true);
			}
			
			else if(ProgramWindow.isScanning()==false && ProgramWindow.getCanceled()==true){
				JOptionPane.showMessageDialog(new JFrame(), "Partition Scan Cancelled", "Cancelled", JOptionPane.WARNING_MESSAGE);
				text = "Scan Canceled, Click Again to Rescan or Select a New Partition";
				this.setText(text);	
				this.setBackground(Color.red);
				this.setEnabled(true);
			}
		}		
				
		else if(text != "Please select a partition you wish to scan"){
			this.setText(text);		
			this.setEnabled(true);
			this.setBackground(Color.green);
		}
		return VisualHDD.getTree(scanPartition).retrieveNode(scanDrive);
	}