>> at javax.swing.table.DefaultTableModel.getValueAt(DefaultTableModel.java:668)
This line indicate that the exception was not catched on line 668 in the file 'DefaultTableModel.java'
The nexts lines should indicates where the error occur in your source code.

I rephrase:
It's indeed needed to add those brackets there, ... but I doubt if that is the main problem
;°)

0

yeggstryAuthor Commented: 2004-09-02

>> can you post all your class code?

No i cannot, this is for the company I work for.
Thanks for the brackets Webstorm, I'll go slap the person that made this code (I have been given the task of figuring out why this isnt working in 1.3.1 and am stumped - google search returns very little).

i have added the column debug line as suggested and have now got the following output:

Ok.
You did:
>table.getModel().setValueAt((String)values[a], 0, a);
with a=1 (if I read well the previous post).
the size of the model is 1 row and 1 column and with the code you are inserting value to position 0,1.
This position doesn't exist. The position available (because the size is 1x1) is only 0,0.
This is the error, I believe.

0

yeggstryAuthor Commented: 2004-09-02

only problem is that I am creating the files using Netbeans, but am compiling in command prompt (because of the setup of the system). Also since its a runtime error I cant step into it there.

oh, one thing I forgot to mention (dont know if it matters or not) is that something is assigned to the dtm before its linked to the table....

dtm.setColumnIdentifiers(columnNames);

table = new JTable();
table.setModel(dtm);

Sorry if I'm being a little dumb here but I simply dont understand how it can be working in one version and not in another when the methods are the same (unless ofc Sun buggered up/changed some of the code somewhere down the line).

0

yeggstryAuthor Commented: 2004-09-02

no Giant2, as I said before...

>so from what I understand, it is trying to enter "Project Channel" into (0,0) of the model that is 1x1 large. Still dont understand the problem :/