MCPcopy Create free account
hub / github.com/OpenSourcePhysics/osp / printDebugData

Method printDebugData

src/test/SimpleTableDemo.java:122–136  ·  view source on GitHub ↗
(JTable table)

Source from the content-addressed store, hash-verified

120 }
121
122 private void printDebugData(JTable table) {
123 int numRows = table.getRowCount();
124 int numCols = table.getColumnCount();
125 javax.swing.table.TableModel model = table.getModel();
126
127 System.out.println("Value of data: ");
128 for (int i=0; i < numRows; i++) {
129 System.out.print(" row " + i + ":");
130 for (int j=0; j < numCols; j++) {
131 System.out.print(" " + model.getValueAt(i, j));
132 }
133 System.out.println();
134 }
135 System.out.println("--------------------------");
136 }
137
138 /**
139 * Create the GUI and show it. For thread safety,

Callers 1

mouseClickedMethod · 0.95

Calls 6

printlnMethod · 0.65
printMethod · 0.65
getRowCountMethod · 0.45
getColumnCountMethod · 0.45
getModelMethod · 0.45
getValueAtMethod · 0.45

Tested by

no test coverage detected