hps-java/src/main/java/org/lcsim/hps/monitoring
diff -u -r1.55 -r1.56
--- MonitoringApplication.java 5 Jun 2013 15:59:57 -0000 1.55
+++ MonitoringApplication.java 5 Jun 2013 17:55:28 -0000 1.56
@@ -92,7 +92,7 @@
* calling its main() method.
*
* @author Jeremy McCormick <[log in to unmask]>
- * @version $Id: MonitoringApplication.java,v 1.55 2013/06/05 15:59:57 jeremy Exp $
+ * @version $Id: MonitoringApplication.java,v 1.56 2013/06/05 17:55:28 jeremy Exp $
*/
public class MonitoringApplication {
@@ -151,6 +151,7 @@
private static Logger logger;
private Handler logHandler;
private DefaultTableModel logTableModel;
+ static final String[] logTableColumns = {"Source", "Message", "Date", "Level"};
private JTable logTable;
private Level defaultLogMessageLevel = Level.INFO;
@@ -185,8 +186,8 @@
private static final int connectionStatusPanelWidth = 400;
/**
- * Constructor for monitoring application. Users should not need to use
- * this; call main() method instead.
+ * Constructor for the monitoring application. Users cannot access this.
+ * Call the main method instead.
*/
private MonitoringApplication() {
@@ -490,7 +491,7 @@
* containing messages from the logger.
*/
private void createLogTable() {
- final String[] logTableColumns = {"Source", "Message", "Date", "Level"};
+
String data[][] = new String[0][0];
logTableModel = new DefaultTableModel(data, logTableColumns);
logTable = new JTable(logTableModel);
@@ -1489,6 +1490,8 @@
log(Level.FINE, "Stopping the event processor.");
eventProcessor.stop();
}
+
+
// Set the application status from the caller.
setConnectionStatus(status);