Closedown

This commit is contained in:
boccioli_m
2015-06-08 14:23:20 +02:00
parent 0cd6e31656
commit e06ebc79c1
2 changed files with 59 additions and 11 deletions

View File

@@ -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(){