为什么会越界?我只是不明白为什么它会超出范围。
for(int g=0;g<tblDependent.getRowCount();g++)
{
insertdep.execute("INSERT INTO EmployeeDependentTable Values('"+
txtEmpNumber.getText()+"','"+
tblDependent.getValueAt(g, 0)+"','"+
tblDependent.getValueAt(g, 3)+"','"+
tblDependent.getValueAt(g, 1)+"','"+
tblDependent.getValueAt(g, 4)+"','"+
tblDependent.getValueAt(g, 2)+"')");
}