list.setModel(comboBox.getModel()); list.setVisibleRowCount(comboBox.getMaximumRowCount());
list.setFont(comboBox.getFont()); list.setForeground(comboBox.getForeground()); list.setBackground(comboBox.getBackground()); Color sfg = UIManager.getColor("ComboBox.selectionForeground"); list.setSelectionForeground(sfg); Color sbg = UIManager.getColor("ComboBox.selectionBackground"); list.setSelectionBackground(sbg); list.setBorder(null); list.setCellRenderer(comboBox.getRenderer());
  protected void configureList()  {    list.setModel(comboBox.getModel());    list.setVisibleRowCount(comboBox.getMaximumRowCount());    list.setFocusable(false);    installListListeners();  }