Code example for Vector

Methods: removeElement

0
     * @param Object sField The screen component.. either a awt.Component or a ScreenField 
     */ 
    public void removeComponent(Object screenField)
    {   // DO NOT call Object or inherited 
        if (m_vScreenField != null) if (screenField != null)
            m_vScreenField.removeElement(screenField);        // Remove this component
    } 
    /** 
     * Get the component at this position. 
     * @return The component at this position or null. 
     */ 
    public Object getComponent(int iPosition)
    { 
        if (m_vScreenField == null)
            return null; 
        if (iPosition < m_vScreenField.size())
        { 
            try   { 
                return m_vScreenField.elementAt(iPosition);
            } 
            catch (ArrayIndexOutOfBoundsException e)    {