(JTable table)
| 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, |
no test coverage detected