8049418: [macosx] PopupMenuListener.popupMenuWillBecomeVisible is not called for empty combobox on MacOS/aqua look and feel
authorazvegint
Mon, 07 Jul 2014 18:56:50 +0400
changeset 25571 c65329415365
parent 25570 a72022403893
child 25572 72ada33d5b97
8049418: [macosx] PopupMenuListener.popupMenuWillBecomeVisible is not called for empty combobox on MacOS/aqua look and feel Reviewed-by: anthony, pchelko
jdk/src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java
--- a/jdk/src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java	Fri Jul 04 15:16:02 2014 +0400
+++ b/jdk/src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java	Mon Jul 07 18:56:50 2014 +0400
@@ -121,10 +121,6 @@
     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