< prev index next >

## src/java.desktop/share/classes/javax/swing/MutableComboBoxModel.java

Print this page

    rev 48358 : Work in progress for JDK-6303622
    Use generic in Swing components like JComboBox
    1. Added generic return type and parameter type for JComboBox.
    2. Modified JList related classes as well.

    *** 49,59 ****
           * should notify all registered <code>ListDataListener</code>s that the
           * item has been removed.
           *
           * @param obj the <code>Object</code> to be removed
           */
    !     public void removeElement( Object obj );

          /**
           * Adds an item at a specific index.  The implementation of this method
           * should notify all registered <code>ListDataListener</code>s that the
           * item has been added.
    --- 49,59 ----
           * should notify all registered <code>ListDataListener</code>s that the
           * item has been removed.
           *
           * @param obj the <code>Object</code> to be removed
           */
    !     public void removeElement( E obj );

          /**
           * Adds an item at a specific index.  The implementation of this method
           * should notify all registered <code>ListDataListener</code>s that the
           * item has been added.

< prev index next >