I'm newer to java as am a migrant from vb6 presnelty I'm shifting my staff and old equipments for last 15 years to Java now i would to load data isnide my Jtable relay on No. of records i mean i want to test where is the current records inside my Jtable and then upload my records behind that line my functions as per here under i used jtable number of row but it gave me error message
public void LoadLineInJtable(){ int RowNo= jTable1.getModel().getRowCount(); jTable1.setValueAt(jTjournal_submain_no.getText(), RowNo+1, 0); jTable1.setValueAt(jTjournal_submain_name.getText(), RowNo+1, 1); } when trying with above code gave me below error
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 9 >= 8 at java.util.Vector.elementAt(Vector.java:470) thank you for your input .