Posted Friday, April 27, 2007 @ 15:49:02
Just getting started so newbie question here:
I've tried running both the QuickTableFrame and AddModifyDeleteTable demo apps. Using Netbeans 5.5 on XP sp2.
In both cases, on the line "dbTable1.refresh", I get the following error (this is after connecting to the db and from code comments seems to be when fetching data to fill the table):
Exception in thread "main" java.lang.NullPointerException
at quick.dbtable.DBTableModel.createColumnModelFromQuery(DBTableModel.java:897)
at quick.dbtable.DBTable.createColumnModelFromQuery(DBTable.java:933)
at quick.dbtable.DBTable.refresh(DBTable.java:878)
at quicktabledemo1.QuickTableFrame.<init>(QuickTableFrame.java:51)
at quicktabledemo1.QuickTableFrame.main(QuickTableFrame.java:68)
Since I don't have the source, I'm wondering if someone can give me a clue to know where I may begin to fix the problem. The code is directly from the website demos so I don't know what I could be doing wrong. Thank you.