8049418: [macosx] PopupMenuListener.popupMenuWillBecomeVisible is not called for empty combobox on MacOS/aqua look and feel

Reviewed-by: anthony, pchelko
This commit is contained in:
Alexander Zvegintsev 2014-07-07 18:56:50 +04:00
parent d5f9bdbecf
commit 05920770b8

View File

@ -121,10 +121,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