Code example for Vector

Methods: get, indexOf, size

0
	} 
 
	public Component getComponentBefore(Container focusCycleRoot, 
			Component aComponent) 
	{ 
		int idx = order.indexOf(aComponent) - 1; 
		if (idx < 0) { 
			idx = order.size() - 1; 
		} 
		return order.get(idx); 
	} 
 
	public Component getDefaultComponent(Container focusCycleRoot) { 
		return order.get(0); 
	} 
 
	public Component getLastComponent(Container focusCycleRoot) { 
		return order.lastElement(); 
	} 
 
	public Component getFirstComponent(Container focusCycleRoot) {