We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1e2faf commit e74c281Copy full SHA for e74c281
combobox-multiple-selection/src/raven/combobox/ComboBoxMultiSelection.java
@@ -37,6 +37,9 @@ public List<Object> getSelectedItems() {
37
}
38
39
public void setSelectedItems(List<Object> selectedItems) {
40
+ // clear the internal selection to avoid duplicates
41
+ clearSelectedItems();
42
+
43
List<Object> comboItem = new ArrayList<>();
44
int count = getItemCount();
45
for (int i = 0; i < count; i++) {
@@ -59,7 +62,9 @@ public void clearSelectedItems() {
59
62
panel.removeAll();
60
63
revalidate();
61
64
repaint();
- comboList.repaint();
65
+ if (comboList != null) {
66
+ comboList.repaint();
67
+ }
68
69
70
0 commit comments