Hi - i'm trying to load results from an oracle database into a JTable with a button in each row. Unfortunately, I'm having some difficulty with the getColumnClass which I understand is supposed to tell the JTable how to render the data contained in the column, which in this instance should be JButtons. The code below compiles ok:
but when the tablemodel is used in the JTable like
or like
running the main class results in a null pointer exception - thus:
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at dbforensicanalysistool.SQLTableModel.getColumnClass(SQLTableModel.java:74) I can't work out why!!?? Can anyone help?