Closedown
This commit is contained in:
@@ -167,12 +167,6 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
|
||||
};
|
||||
|
||||
public Class getColumnClass(int columnIndex) {
|
||||
switch (columnIndex){
|
||||
case 0:
|
||||
return Boolean.class;
|
||||
case 6:
|
||||
return ImageIcon.class;
|
||||
}
|
||||
return types [columnIndex];
|
||||
}
|
||||
|
||||
@@ -181,6 +175,12 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
|
||||
}
|
||||
});
|
||||
jScrollPane2.setViewportView(jTable1);
|
||||
if (jTable1.getColumnModel().getColumnCount() > 0) {
|
||||
jTable1.getColumnModel().getColumn(0).setResizable(false);
|
||||
jTable1.getColumnModel().getColumn(0).setPreferredWidth(5);
|
||||
jTable1.getColumnModel().getColumn(6).setResizable(false);
|
||||
jTable1.getColumnModel().getColumn(6).setPreferredWidth(10);
|
||||
}
|
||||
|
||||
add(jScrollPane2, java.awt.BorderLayout.PAGE_END);
|
||||
}// </editor-fold>//GEN-END:initComponents
|
||||
@@ -223,8 +223,12 @@ jTable1.setValueAt(icon, rowD, COL_ICON);
|
||||
{false, sDate, "FIXL", "Lamp Test", "Failure", "Pending", icon}
|
||||
};
|
||||
|
||||
DefaultTableModel model = new DefaultTableModel(data, columnNames);
|
||||
jTable1.setModel(model);
|
||||
|
||||
//DefaultTableModel model = new DefaultTableModel(data, columnNames);
|
||||
//jTable1.setModel(model);
|
||||
|
||||
DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
|
||||
model.addRow(data);
|
||||
}
|
||||
|
||||
public String getNow(){
|
||||
|
||||
Reference in New Issue
Block a user