diff --git a/plugins/TestingList.form b/plugins/TestingList.form index 194c6c5..0d4e18a 100644 --- a/plugins/TestingList.form +++ b/plugins/TestingList.form @@ -46,16 +46,8 @@ - - - - - - - - - -
+ + diff --git a/plugins/TestingList.java b/plugins/TestingList.java index 667606f..6e62204 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -117,13 +117,10 @@ public class TestingList extends Panel { ImageIcon icon = new ImageIcon(getClass().getResource("/icons/button_reload.png")); jTable1.setValueAt(icon, rowD, COL_ICON); - if(colT>0 && rowD>0){ - + if(colT>0 && rowD>0){ jTable1.setValueAt(res, rowD, COL_RESULT); jTable1.setValueAt(success, rowD, COL_SUCCESS); jTable1.getCellEditor(rowD, COL_SUCCESS); - - } else{ //no test found in table. appen new one DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); @@ -159,7 +156,7 @@ jTable1.setValueAt(icon, rowD, COL_ICON); } ) { Class[] types = new Class [] { - java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class + java.lang.Boolean.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.awt.Image.class }; boolean[] canEdit = new boolean [] { true, true, true, true, true, true, false @@ -213,7 +210,6 @@ jTable1.setValueAt(icon, rowD, COL_ICON); public void buildTable(){ String sDate = getNow(); ImageIcon icon = new ImageIcon(getClass().getResource("/icons/button_play.png")); - //jTable1.getColumnModel().getColumn(6).setCellRenderer(new ImageRenderer()); DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); model.addRow(new Object[] {false, sDate, "LS", "Check Status", "No comm", "Pending", Color.BLUE}); model.addRow(new Object[] {true, sDate, "RS", "Calibrate", "Calibration done", "Pending", icon});