JTables

Hello..Well i am making database application using Java..In my appication i need to store some details about items in my store..For that i am using Tables..I have made a table in which i can add as well as delete rows...

But i want to now store data from table into my database...I have tried a lot but i am not able to get data from cells..

my codes of line is:

for(int i = 0;i<table.getRowCount();i++)

{

insItem(table.getValueAt(i,0), table.getValueAt(i,1), table.getValueAt(i,2) );

///calls function from another cls for inserting data

}

But the problem is im getting error...Array out of bound exception..i dont know why?

plz do help..n thanx in advance>

[725 byte] By [Channel11a] at [2007-11-26 14:43:52]
# 1
do you know what an array out of bounds means?is so, use the debugger and figure out why you are doing it.
mkoryaka at 2007-7-8 8:31:32 > top of Java-index,Java Essentials,Java Programming...
# 2
> But the problem is im getting error...Array out of> bound exception..i dont know why?> plz do help..n thanx in advanceHard to say. The stacktrace will tell you at what line the error is.
kajbja at 2007-7-8 8:31:32 > top of Java-index,Java Essentials,Java Programming...