mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-102961 fixed
This commit is contained in:
@@ -135,9 +135,11 @@ public class CheckBoxList<T> extends JBList<JCheckBox> {
|
||||
private void setPressed(MouseEvent e, boolean pressed) {
|
||||
Point point = e.getPoint();
|
||||
int index = locationToIndex(point);
|
||||
JCheckBox cb = getModel().getElementAt(index);
|
||||
cb.getModel().setPressed(pressed);
|
||||
UIUtil.repaintViewport(CheckBoxList.this);
|
||||
if (index >= 0 && index < getModel().getSize()) {
|
||||
JCheckBox cb = getModel().getElementAt(index);
|
||||
cb.getModel().setPressed(pressed);
|
||||
UIUtil.repaintViewport(CheckBoxList.this);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user