I used JTable to update records in a table. In the following code, I am getting
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
exception in the line :
table = new JTable(this);
However, this is happening ONLY for the table 'Triangle' and not for the other tables. What could be wrong ???
But without the stack trace we still can't see what exactly is going wrong. There are quite a lot of method calls from the JTable constructors that it's hard to see what exactly goes wrong just by looking at this code.
G Kiran Kumar
Joined: Apr 12, 2009
This is the complete code of the .java file. I have a table Triangle in Microsoft access DB. It has 14 columns