setValueAt(Object aValue, int row, int col)
问题 I am trying to change a value in the Object[][] data in a defaultTableModel but I am getting a nullpointerexception at if (data[i][j] == userFolderName) I have tried changing the variable to "Kathy" just in case it wasn't reading the userName correctly but it still throws the exception. Can you please have a look at my code and see where I'm going wrong? public class Statistics extends JPanel { public Object[][] data; public DefaultTableModel model; public Statistics() { super(new GridLayout