code: public int indexOf( Widget w )
  	{
  		for( int i = 0; i < size; ++i )
  		{
  			if( array[i] == w )
  			{
  				return i;
  			}
  		}
  
  		return -1;
  	}
docs: Gets the index of the specified index.
  
  @param w
  the widget to be found
  @return the index of the specified widget, or <code>-1</code> if it is
  not found