Patch from Marcus Crafter:
...
After speaking with Christopher Oliver, the problem seems to be a general JDK
1.4 bug that caches selected values in JComboBox, even after removeAllItems() is
called. Since its a general defect Christopher and I thought we'd report and get
it fixed in the main CVS tree.
...
This commit is contained in:
igor%mir2.org 2002-12-08 21:06:45 +00:00
Родитель 50029c37e2
Коммит 8ae4899263
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -1700,6 +1700,9 @@ class UpdateContext implements Runnable {
db.context.disableUpdate();
int frameCount = contextData.getFrameCount();
ctx.removeAllItems();
// workaround for JDK 1.4 bug that caches selected value even after
// removeAllItems() is called
ctx.setSelectedItem(null);
toolTips.removeAllElements();
for (int i = 0; i < frameCount; i++) {
FrameHelper frame = contextData.getFrame(i);