--- /home/cpdev/src/classpath/javax/swing/DefaultComboBoxModel.java	2005-07-02 21:04:00.000000000 +0000
+++ javax/swing/DefaultComboBoxModel.java	2005-06-30 05:35:08.000000000 +0000
@@ -108,7 +108,7 @@
   public void addElement(Object object)
   {
     list.add(object);
-    fireIntervalAdded(this, list.size() - 1, list.size());
+    fireIntervalAdded(this, list.size(), list.size());
   }
 
   /**
@@ -163,9 +163,9 @@
    */
   public void removeAllElements()
   {
-    list.clear();
     int listSize = getSize();
-    fireIntervalAdded(this, 0, listSize);
+    list.clear();
+    fireIntervalAdded(this, 0, listSize - 1);
   }
 
   /**
@@ -192,8 +192,9 @@
   public void setSelectedItem(Object object)
   {
     
-    // Updates the selected item only if the given object
-    // is null or in the list (this is how the JDK behaves).
+    /* Updates the selected item only if the given object
+     * is null or in the list (this is how the JDK behaves).
+     */ 
     if(object == null || list.contains(object)) {
 	selectedItem = object;
 	fireContentsChanged(this, -1, -1);
