Closedown

This commit is contained in:
boccioli_m
2015-06-12 11:48:49 +02:00
parent 5931041111
commit 9c3f08b04a

View File

@@ -446,18 +446,18 @@ public class TestingList extends Panel {
}
public void updateStatus() {
String sStatus, iconSource;
String sStatus;
boolean bSelected;
ImageIcon icon = null;
for (int row = 0; row <= jTable1.getRowCount() - 1; row++) {
bSelected = (boolean) jTable1.getValueAt(row, COL_CHECK);
if (bSelected) {
sStatus = "Pending";
iconSource = "/icons/button_stop-16px.png";
String iconSource = "/icons/button_stop-16px.png";
icon = new ImageIcon(getClass().getResource(iconSource));
} else {
sStatus = "Disabled";
iconSource = "";
}
ImageIcon icon = new ImageIcon(getClass().getResource(iconSource));
jTable1.setValueAt(bSelected, row, COL_CHECK);
jTable1.setValueAt(icon, row, COL_ICON);
jTable1.setValueAt(sStatus, row, COL_STATUS);