Fix drop issues
This commit is contained in:
parent
2c117561e3
commit
1093431c24
|
@ -204,7 +204,7 @@ public class ListPanel extends JComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void createItemSequence(List<?> objects) {
|
public void createItemSequence(List<?> objects) {
|
||||||
List<ListItem> items = IntStream.range(1, objects.size()).mapToObj(i -> createItem(objects.get(i), i, 0, objects.size(), objects)).collect(toList());
|
List<ListItem> items = IntStream.range(0, objects.size()).mapToObj(i -> createItem(objects.get(i), i + 1, 1, objects.size(), objects)).collect(toList());
|
||||||
|
|
||||||
list.getListComponent().clearSelection();
|
list.getListComponent().clearSelection();
|
||||||
list.getModel().clear();
|
list.getModel().clear();
|
||||||
|
|
Loading…
Reference in New Issue