Java 类weka.core.Copyright 实例源码

项目:autoweka    文件:KnowledgeFlowApp.java   
private void setUpLogPanel(final LogPanel logPanel) {
  String date = (new SimpleDateFormat("EEEE, d MMMM yyyy"))
  .format(new Date());
  logPanel.logMessage("Weka Knowledge Flow was written by Mark Hall");
  logPanel.logMessage("Weka Knowledge Flow");
  logPanel.logMessage("(c) 2002-" + Copyright.getToYear() + " " 
      + Copyright.getOwner() + ", " + Copyright.getAddress());
  logPanel.logMessage("web: " + Copyright.getURL());
  logPanel.logMessage(date);
  logPanel.statusMessage("[KnowledgeFlow]|Welcome to the Weka Knowledge Flow");
  logPanel.getStatusTable().addMouseListener(new MouseAdapter() {
    public void mouseClicked(MouseEvent e) {
      if (logPanel.getStatusTable().rowAtPoint(e.getPoint()) == 0) {
        if (((e.getModifiers() & InputEvent.BUTTON1_MASK)
            != InputEvent.BUTTON1_MASK) || e.isAltDown()) {
          System.gc();
          Runtime currR = Runtime.getRuntime();
          long freeM = currR.freeMemory();
          long totalM = currR.totalMemory();
          long maxM = currR.maxMemory();
          logPanel.
          logMessage("[KnowledgeFlow] Memory (free/total/max.) in bytes: " 
              + String.format("%,d", freeM) + " / " 
              + String.format("%,d", totalM) + " / " 
              + String.format("%,d", maxM));
          logPanel.statusMessage("[KnowledgeFlow]|Memory (free/total/max.) in bytes: " 
              + String.format("%,d", freeM) + " / " 
              + String.format("%,d", totalM) + " / " 
              + String.format("%,d", maxM)); 
        }
      }
    }
  });
}