From f5c05cc85e903a1ea61db4608ed90d1cfb11e4ee Mon Sep 17 00:00:00 2001 From: azvegint Date: Tue, 8 Jul 2014 11:36:44 +0400 Subject: [PATCH] 8049418: [macosx] PopupMenuListener.popupMenuWillBecomeVisible is not called for empty combobox on MacOS/aqua look and feel Reviewed-by: anthony, pchelko --- src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java b/src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java index b393338d0..0607f9c36 100644 --- a/src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java +++ b/src/macosx/classes/com/apple/laf/AquaComboBoxPopup.java @@ -120,10 +120,6 @@ class AquaComboBoxPopup extends BasicComboPopup { 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 -- GitLab