jdk/src/java.desktop/share/classes/java/awt/List.java
changeset 28059 e576535359cc
parent 26749 b6598aa90114
child 30471 c1568a2416a8
equal deleted inserted replaced
28058:87940c838900 28059:e576535359cc
   345     public void addItem(String item) {
   345     public void addItem(String item) {
   346         addItem(item, -1);
   346         addItem(item, -1);
   347     }
   347     }
   348 
   348 
   349     /**
   349     /**
   350      * Adds the specified item to the the scrolling list
   350      * Adds the specified item to the scrolling list
   351      * at the position indicated by the index.  The index is
   351      * at the position indicated by the index.  The index is
   352      * zero-based.  If the value of the index is less than zero,
   352      * zero-based.  If the value of the index is less than zero,
   353      * or if the value of the index is greater than or equal to
   353      * or if the value of the index is greater than or equal to
   354      * the number of items in the list, then the item is added
   354      * the number of items in the list, then the item is added
   355      * to the end of the list.
   355      * to the end of the list.
   362     public void add(String item, int index) {
   362     public void add(String item, int index) {
   363         addItem(item, index);
   363         addItem(item, index);
   364     }
   364     }
   365 
   365 
   366     /**
   366     /**
   367      * Adds the specified item to the the list
   367      * Adds the specified item to the list
   368      * at the position indicated by the index.
   368      * at the position indicated by the index.
   369      *
   369      *
   370      * @param  item the item to be added
   370      * @param  item the item to be added
   371      * @param  index the position at which to add the item
   371      * @param  index the position at which to add the item
   372      * @deprecated replaced by <code>add(String, int)</code>.
   372      * @deprecated replaced by <code>add(String, int)</code>.