Closedown

This commit is contained in:
boccioli_m
2015-06-05 10:45:15 +02:00
parent bc80265912
commit db33d78f86

View File

@@ -18,6 +18,9 @@ import ch.psi.wsaf.TaskRunMode;
import ch.psi.wsaf.TaskRunningException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.logging.Level;
import java.util.logging.Logger;
@@ -155,12 +158,15 @@ public class TestingList extends Panel {
//table with checkboxes
public void buildTable(){
Object[] columnNames = {"Type", "Company", "Shares", "Price", "Boolean"};
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
String sDate = date.toString();
Object[] columnNames = {"Time", "Device", "Test", "Result", "Success"};
Object[][] data = {
{"Buy", "IBM", new Integer(1000), new Double(80.50), false},
{"Sell", "MicroSoft", new Integer(2000), new Double(6.25), true},
{"Sell", "Apple", new Integer(3000), new Double(7.35), true},
{"Buy", "Nortel", new Integer(4000), new Double(20.00), false}
{sDate, "LS", "Check Status", "No comm", false},
{sDate, "RS", "Calibrate", "Calibration done", true},
{sDate, "MWD", "Display Test", "Sequence terminated", true},
{sDate, "FIXL", "Lamp Test", "Failure", false}
};
DefaultTableModel model = new DefaultTableModel(data, columnNames);