8049418: [macosx] PopupMenuListener.popupMenuWillBecomeVisible is not called for empty combobox on MacOS/aqua look and feel
Reviewed-by: anthony, pchelko
--- 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