Print

Print


Author: [log in to unmask]
Date: Tue Mar 17 19:50:34 2015
New Revision: 2477

Log:
Fix bug using wrong type of cell value in table.

Modified:
    java/trunk/monitoring-app/src/main/java/org/hps/monitoring/application/SystemStatusEventsTable.java

Modified: java/trunk/monitoring-app/src/main/java/org/hps/monitoring/application/SystemStatusEventsTable.java
 =============================================================================
--- java/trunk/monitoring-app/src/main/java/org/hps/monitoring/application/SystemStatusEventsTable.java	(original)
+++ java/trunk/monitoring-app/src/main/java/org/hps/monitoring/application/SystemStatusEventsTable.java	Tue Mar 17 19:50:34 2015
@@ -56,7 +56,7 @@
                 JLabel label = (JLabel) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, col);
 
                 // Color code the cell by its status.
-                StatusCode statusCode = StatusCode.valueOf((String) value);
+                StatusCode statusCode = (StatusCode) value;
                 label.setBackground(statusCode.getColor());
                 return label;
             }