for (int i = start - 1; i < end; i++)
for (int i = start; i < end; i++)
    public void intervalAdded(ListDataEvent e)    {      // must determine if the size of the combo box should change      int start = e.getIndex0();      int end = e.getIndex1();      ComboBoxModel model = comboBox.getModel();      ListCellRenderer renderer = comboBox.getRenderer();      if (largestItemSize == null)	largestItemSize = new Dimension(0, 0);      for (int i = start - 1; i < end; i++)        {	  Object item = model.getElementAt(i);	  Component comp = renderer.getListCellRendererComponent(new JList(),	                                                         item, -1,	                                                         false, false);	  if (comp.getPreferredSize().getWidth() > largestItemSize.getWidth())	    largestItemSize = comp.getPreferredSize();        }    }