Closedown

This commit is contained in:
boccioli_m
2015-06-10 14:11:05 +02:00
parent 4b54f81e85
commit b5e8ade16c

View File

@@ -311,7 +311,7 @@ public class TestingList extends Panel {
//show test result in table
public int showResult(String deviceName, String testName, String res, String status) {
int rowD = -1, colT = -1;
int rowD = -1;
//search for device name in table
for (int row = 0; row <= jTable1.getRowCount() - 1; row++) {
if (deviceName.equals(jTable1.getValueAt(row, COL_DEVICENAME)) &&
@@ -338,7 +338,7 @@ public class TestingList extends Panel {
ImageIcon icon = new ImageIcon(getClass().getResource(iconSource));
jTable1.setValueAt(icon, rowD, COL_ICON);
if (colT >= 0 && rowD >= 0) {
if (rowD >= 0) {
jTable1.setValueAt(getNow(), rowD, COL_TIME);
jTable1.setValueAt(res, rowD, COL_RESULT);
jTable1.setValueAt(status, rowD, COL_STATUS);