Commit 8bfa9e25 authored by James Mark Chan's avatar James Mark Chan

separating duration into its own column

parent 0a6f7345
......@@ -44,13 +44,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="9" rowCount="0">
<Table columnCount="10" rowCount="0">
<Column editable="false" title="Run Type" type="java.lang.Object"/>
<Column editable="false" title="Sequence" type="java.lang.Object"/>
<Column editable="false" title="Marks" type="java.lang.Object"/>
<Column editable="false" title="Blocks" type="java.lang.Object"/>
<Column editable="false" title="Size" type="java.lang.Object"/>
<Column editable="false" title="Start Time (duration)" type="java.lang.Object"/>
<Column editable="false" title="Start Time" type="java.lang.Object"/>
<Column editable="true" title="Duration" type="java.lang.Object"/>
<Column editable="false" title="Max (MB/Sec)" type="java.lang.Object"/>
<Column editable="false" title="Min (MB/Sec)" type="java.lang.Object"/>
<Column editable="false" title="Avg (MB/Sec)" type="java.lang.Object"/>
......@@ -88,6 +89,11 @@
<Editor/>
<Renderer/>
</Column>
<Column maxWidth="-1" minWidth="-1" prefWidth="15" resizable="true">
<Title/>
<Editor/>
<Renderer/>
</Column>
<Column maxWidth="-1" minWidth="-1" prefWidth="40" resizable="true">
<Title/>
<Editor/>
......
......@@ -38,11 +38,11 @@ public class RunPanel extends javax.swing.JPanel {
},
new String [] {
"Run Type", "Sequence", "Marks", "Blocks", "Size", "Start Time (duration)", "Max (MB/Sec)", "Min (MB/Sec)", "Avg (MB/Sec)"
"Run Type", "Sequence", "Marks", "Blocks", "Size", "Start Time", "Duration", "Max (MB/Sec)", "Min (MB/Sec)", "Avg (MB/Sec)"
}
) {
boolean[] canEdit = new boolean [] {
false, false, false, false, false, false, false, false, false
false, false, false, false, false, false, true, false, false, false
};
public boolean isCellEditable(int rowIndex, int columnIndex) {
......@@ -57,9 +57,10 @@ public class RunPanel extends javax.swing.JPanel {
jTable1.getColumnModel().getColumn(3).setPreferredWidth(15);
jTable1.getColumnModel().getColumn(4).setPreferredWidth(15);
jTable1.getColumnModel().getColumn(5).setPreferredWidth(150);
jTable1.getColumnModel().getColumn(6).setPreferredWidth(40);
jTable1.getColumnModel().getColumn(6).setPreferredWidth(15);
jTable1.getColumnModel().getColumn(7).setPreferredWidth(40);
jTable1.getColumnModel().getColumn(8).setPreferredWidth(40);
jTable1.getColumnModel().getColumn(9).setPreferredWidth(40);
}
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
......@@ -95,12 +96,12 @@ public class RunPanel extends javax.swing.JPanel {
run.numMarks,
run.numBlocks,
run.blockSize,
run.startTime.toString() + " ("+ run.getDuration() + ")",
run.startTime.toString(),
run.getDuration(),
run.getMax(),
run.getMin(),
run.getAvg(),
});
System.out.println("num rows is now: "+ model.getRowCount());
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment