list.setModel((ComboBoxModel) e.getNewValue()); revalidate(); repaint();
ComboBoxModel oldModel = (ComboBoxModel) e.getOldValue(); uninstallComboBoxModelListeners(oldModel); ComboBoxModel newModel = (ComboBoxModel) e.getNewValue(); list.setModel(newModel); installComboBoxModelListeners(newModel); if (comboBox.getItemCount() > 0) comboBox.setSelectedIndex(0); if (isVisible()) hide();
    public void propertyChange(PropertyChangeEvent e)    {      if (e.getPropertyName().equals("renderer"))        {	  list.setCellRenderer((ListCellRenderer) e.getNewValue());	  revalidate();	  repaint();        }      if (e.getPropertyName().equals("dataModel"))        {	  list.setModel((ComboBoxModel) e.getNewValue());	  revalidate();	  repaint();        }    }