@Override
	public void display(int depth) {
		StringBuilder sb=new StringBuilder();
	    for(int i=0;i<depth;i++){
	    	sb.append("-");
	    }
	    sb.append(name);
	    System.out.println(sb.toString());
		for (Component c : children) {
			c.display(depth + 2);
		}
	}