Closedown
This commit is contained in:
@@ -47,14 +47,14 @@
|
||||
<Component class="javax.swing.JTable" name="jTable1">
|
||||
<Properties>
|
||||
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
|
||||
<Table columnCount="7" rowCount="4">
|
||||
<Table columnCount="7" rowCount="0">
|
||||
<Column editable="true" title="Select" type="java.lang.Boolean"/>
|
||||
<Column editable="true" title="Title 1" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Title 3" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Title 4" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Title 5" type="java.lang.Object"/>
|
||||
<Column editable="true" title="" type="java.lang.Object"/>
|
||||
<Column editable="false" title="Icon" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Time" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Device" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Test" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Result" type="java.lang.Object"/>
|
||||
<Column editable="true" title="Status" type="java.lang.Object"/>
|
||||
<Column editable="false" title="" type="java.lang.Object"/>
|
||||
</Table>
|
||||
</Property>
|
||||
<Property name="columnModel" type="javax.swing.table.TableColumnModel" editor="org.netbeans.modules.form.editors2.TableColumnModelEditor">
|
||||
|
||||
@@ -150,13 +150,10 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
|
||||
|
||||
jTable1.setModel(new javax.swing.table.DefaultTableModel(
|
||||
new Object [][] {
|
||||
{null, null, null, null, null, null, null},
|
||||
{null, null, null, null, null, null, null},
|
||||
{null, null, null, null, null, null, null},
|
||||
{null, null, null, null, null, null, null}
|
||||
|
||||
},
|
||||
new String [] {
|
||||
"Select", "Title 1", "Title 3", "Title 4", "Title 5", "", "Icon"
|
||||
"Select", "Time", "Device", "Test", "Result", "Status", ""
|
||||
}
|
||||
) {
|
||||
Class[] types = new Class [] {
|
||||
@@ -214,21 +211,13 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
|
||||
|
||||
public void buildTable(){
|
||||
String sDate = getNow();
|
||||
Object[] columnNames = {"Select", "Time", "Device", "Test", "Result", "Status", "Sum"};
|
||||
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},
|
||||
{false, sDate, "MWD", "Display Test", "Sequence terminated", "Pending", icon},
|
||||
{false, sDate, "FIXL", "Lamp Test", "Failure", "Pending", icon}
|
||||
};
|
||||
|
||||
|
||||
//DefaultTableModel model = new DefaultTableModel(data, columnNames);
|
||||
//jTable1.setModel(model);
|
||||
|
||||
|
||||
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
|
||||
model.addRow(data);
|
||||
model.addRow(new Object[] {false, sDate, "LS", "Check Status", "No comm", "Pending", icon});
|
||||
model.addRow(new Object[] {false, sDate, "RS", "Calibrate", "Calibration done", "Pending", icon});
|
||||
model.addRow(new Object[] {false, sDate, "MWD", "Display Test", "Sequence terminated", "Pending", icon});
|
||||
model.addRow(new Object[] {false, sDate, "FIXL", "Lamp Test", "Failure", "Pending", icon});
|
||||
jTable1.setModel(model);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user