public Color getColor(Tree_File file) 
	{
		String filename = file.getName();
		
		int lastIndex = filename.lastIndexOf('.');
		
		if (lastIndex == -1) return Color.LIGHT_GRAY; // no period in filename
		
		String fileExt = filename.substring(lastIndex+1).toLowerCase();
		
		if (isImage(fileExt)) return Color.YELLOW;
		if (isVideo(fileExt)) return Color.RED;
		if (isAudio(fileExt)) return Color.PINK;
		if (isDocument(fileExt)) return Color.BLUE;
		if (isScript(fileExt)) return Color.GREEN;
		if (isCode(fileExt)) return Color.ORANGE;
		if (isDatabase(fileExt)) return Color.CYAN;
		if (isCompressed(fileExt)) return Color.DARK_GRAY;
		return Color.LIGHT_GRAY;
	}