This commit is contained in:
gac-S_Changer
2018-08-22 11:28:22 +02:00
parent 1aea9fbc6d
commit 250af86505
2 changed files with 7 additions and 3 deletions

View File

@@ -192,9 +192,9 @@ public class MainPanel extends Panel {
void refresh(){
repaint();
for (Puck p : Controller.getInstance().basePlate.getPucks()) {
//int index = (p.getSegment() - new Character('A')) * 5 + p.getNumber();
tablePucks.getModel().setValueAt(p.getStatus(), p.getIndex(), 1);
tablePucks.getModel().setValueAt(p.getId(), p.getIndex(), 2);
int index = p.getUserIndex();
tablePucks.getModel().setValueAt(p.getStatus(), index, 1);
tablePucks.getModel().setValueAt(p.getId(), index, 2);
}
}