From bd48ebb4082fd6ed083132a0225f44d55eed030b Mon Sep 17 00:00:00 2001 From: Thomas Bayen Date: Sun, 20 Jan 2013 23:04:04 +0100 Subject: [PATCH] IDEMPIERE-574 - Swing AutoReducible ComboBox not reduced when used with cursor keys --- org.adempiere.ui.swing/src/org/compiere/swing/CComboBox.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/swing/CComboBox.java b/org.adempiere.ui.swing/src/org/compiere/swing/CComboBox.java index 53b712308f..cb28aff201 100644 --- a/org.adempiere.ui.swing/src/org/compiere/swing/CComboBox.java +++ b/org.adempiere.ui.swing/src/org/compiere/swing/CComboBox.java @@ -640,7 +640,9 @@ public class CComboBox extends JComboBox public void contentsChanged(ListDataEvent lde) { updateDataModel(); - updateModel(false); + // IDEMPIERE-574 - Swing AutoReducible ComboBox not reduced when used with cursor keys + // tbayen 2013-01-20 + updateModel(isAutoReducible()); if (isPopupVisible()) {