public ComboBoxCellRenderer(JComboBox<String> comboBox){
  this.combo=new JComboBox<String>();
  for (int i=0; i < comboBox.getItemCount(); i++) {
    combo.addItem(comboBox.getItemAt(i));
  }
}

public ComboBoxCellRenderer ( JComboBox < String > comboBox ) { this . combo = new JComboBox < String > ( ) ; for ( int i = 0 ; i < comboBox . getItemCount ( ) ; i ++ ) { combo . addItem ( comboBox . getItemAt ( i ) ) ; } }
instantiates a new check box cell renderer .
