/** adds a found scan to a seleceted lost package */ private void buttonSetFoundActionPerformed(ActionEvent event) { int index = jListPackages.getSelectedIndex(); if (index >= 0) { Package p = this.packages.get(index); if (p.lastScan().event == ScanEvents.lost) { p.scan(ScanEvents.found, this.user); this.packages.remove(p); this.jListPackages.setListData(new Vector(this.packages)); jListScans.setListData(new Vector()); } } }