return totalHeight;
return totalHeight == 0 ? 100 : totalHeight;
  protected int getPopupHeightForRowCount(int maxRowCount)  {    int totalHeight = 0;    ListCellRenderer rend = list.getCellRenderer();    if (comboBox.getItemCount() < maxRowCount)      maxRowCount = comboBox.getItemCount();    for (int i = 0; i < maxRowCount; i++)      {	Component comp = rend.getListCellRendererComponent(list,	                                                   comboBox.getModel()	                                                           .getElementAt(i),	                                                   -1, false, false);	Dimension dim = comp.getPreferredSize();	totalHeight += dim.height;      }    return totalHeight;  }