Fix drop issues

This commit is contained in:
Reinhard Pointner 2016-04-23 02:02:01 +08:00
parent 2c117561e3
commit 1093431c24
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class ListPanel extends JComponent {
}
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.getModel().clear();