src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java

Print this page

        

*** 119,128 **** --- 119,132 ---- @Override public void show() { final int startItemCount = comboBox.getItemCount(); + if (startItemCount == 0) { + return; + } + final Rectangle popupBounds = adjustPopupAndGetBounds(); if (popupBounds == null) return; // null means don't show comboBox.firePopupMenuWillBecomeVisible(); show(comboBox, popupBounds.x, popupBounds.y);