[ 1713159 ] List shrink to one element on requery after add new element
Implemented suggestion by Bahman
This commit is contained in:
parent
a51eb60084
commit
040dfab8fc
|
@ -267,9 +267,6 @@ public class VLookup extends JComponent
|
||||||
private boolean m_comboActive = true;
|
private boolean m_comboActive = true;
|
||||||
/** The Value */
|
/** The Value */
|
||||||
private Object m_value;
|
private Object m_value;
|
||||||
/** Zoom started - requery values */
|
|
||||||
private boolean m_zoomStarted = false;
|
|
||||||
|
|
||||||
|
|
||||||
// Popup
|
// Popup
|
||||||
JPopupMenu popupMenu = new JPopupMenu();
|
JPopupMenu popupMenu = new JPopupMenu();
|
||||||
|
@ -445,10 +442,6 @@ public class VLookup extends JComponent
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set Display
|
|
||||||
if (m_zoomStarted) // assume new value
|
|
||||||
m_lookup.removeAllElements();
|
|
||||||
m_zoomStarted = false;
|
|
||||||
m_lastDisplay = m_lookup.getDisplay(value);
|
m_lastDisplay = m_lookup.getDisplay(value);
|
||||||
if (m_lastDisplay.equals("<-1>"))
|
if (m_lastDisplay.equals("<-1>"))
|
||||||
{
|
{
|
||||||
|
@ -1175,7 +1168,6 @@ public class VLookup extends JComponent
|
||||||
// async window - not able to get feedback
|
// async window - not able to get feedback
|
||||||
frame = null;
|
frame = null;
|
||||||
//
|
//
|
||||||
m_zoomStarted = true;
|
|
||||||
setCursor(Cursor.getDefaultCursor());
|
setCursor(Cursor.getDefaultCursor());
|
||||||
} // actionZoom
|
} // actionZoom
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue