Closedown
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user