diff --git a/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommCallComboBoxUI.java b/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommCallComboBoxUI.java index 20272da97..b2657587c 100644 --- a/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommCallComboBoxUI.java +++ b/src/net/java/sip/communicator/impl/gui/lookandfeel/SIPCommCallComboBoxUI.java @@ -36,15 +36,21 @@ public SIPCommComboPopup(JComboBox combo) { super(combo); } - + /** - * Implementation of ComboPopup.show(). + * Makes the popup visible if it is hidden and makes it hidden if it is + * visible. */ - public void show() { - setListSelection(comboBox.getSelectedIndex()); + protected void togglePopup() { + if ( isVisible() ) { + hide(); + } + else { + setListSelection(comboBox.getSelectedIndex()); - Point location = getPopupLocation(); - show( comboBox, location.x, location.y ); + Point location = getPopupLocation(); + show( comboBox, location.x, location.y ); + } } /**