We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent0ab99ed commit9a2c123Copy full SHA for 9a2c123
src/demo/share/jfc/SwingSet2/TableDemo.java
@@ -549,7 +549,10 @@ public JScrollPane createTable() {
549
publicintgetRowCount() {returndata.length;}
550
publicObjectgetValueAt(introw,intcol) {returndata[row][col];}
551
publicStringgetColumnName(intcolumn) {returnnames[column];}
552
-publicClass<?>getColumnClass(intc) {returngetValueAt(0,c).getClass();}
+publicClass<?>getColumnClass(intc) {
553
+Objectobj =getValueAt(0,c);
554
+returnobj !=null ?obj.getClass() :Object.class;
555
+ }
556
publicbooleanisCellEditable(introw,intcol) {returncol !=5;}
557
publicvoidsetValueAt(ObjectaValue,introw,intcolumn) {data[row][column] =aValue; }
558
};