here i am using 2 jtables and the first one gets populated from the db table but the second one does not. it gives this error : com.microsoft.sqlserver.jdbc.SQLServerException: The result set is closed.
Hey I got my mistake. In the last fragment i was using while(rs.next()) where it should have been (Ars.next());
after changing that I am getting this error:
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
It is outside the program, the error (in one of the imported packages) but when i comment the last (//after) part it works. So definitely something in the last part of the code, I don't understand what though