Closedown

This commit is contained in:
boccioli_m
2015-06-08 13:45:20 +02:00
parent 47431095fa
commit b5e447518f
3 changed files with 9 additions and 5 deletions

View File

@@ -111,7 +111,7 @@ public class TestingList extends Panel {
}
}
}
ImageIcon icon = new ImageIcon("icons/button_reload.png");
ImageIcon icon = new ImageIcon("/icons/button_reload.png");
jTable1.setValueAt(icon, rowD, COL_ICON);
if(colT>0 && rowD>0){
@@ -138,6 +138,7 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
setLayout(new java.awt.BorderLayout());
jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/button_play.png"))); // NOI18N
jButton1.setText("Test PS");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
@@ -213,7 +214,7 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
public void buildTable(){
String sDate = getNow();
Object[] columnNames = {"Select", "Time", "Device", "Test", "Result", "Status", ""};
ImageIcon icon = new ImageIcon("button_play.png");
ImageIcon icon = new ImageIcon(getClass().getResource("/icons/button_play.png"));
Object[][] data = {
{false, sDate, "LS", "Check Status", "No comm", "Pending", icon},
{false, sDate, "RS", "Calibrate", "Calibration done", "Pending", icon},
@@ -228,11 +229,11 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
public String getNow(){
DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
Date date = new Date();
return dateFormat.format(date);
return dateFormat.format(date);
}
}
}