Do not call setSelectedIndex on frame JList if there are no frames.

This commit is contained in:
igor%mir2.org 2003-01-26 18:33:30 +00:00
Родитель b869da1525
Коммит d116b752fb
1 изменённых файлов: 3 добавлений и 1 удалений

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

@ -1719,7 +1719,9 @@ class UpdateContext implements Runnable {
toolTips.addElement(location);
}
db.context.enableUpdate();
ctx.setSelectedIndex(0);
if (frameCount != 0) {
ctx.setSelectedIndex(0);
}
ctx.setMinimumSize(new Dimension(50, ctx.getMinimumSize().height));
}
};