зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
50029c37e2
Коммит
8ae4899263
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче