if (dataModel instanceof DefaultComboBoxModel)
if (dataModel instanceof DefaultComboBoxModel) {
  public void removeAllItems()  {    if (dataModel instanceof DefaultComboBoxModel)      ((DefaultComboBoxModel) dataModel).removeAllElements();  }