This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi All, I am working on the JTable, and i am able to add, edit, delete rows from the table. But when i delete a table and then click the add, then it is not working, it is throwing ArrayIndexOutofBoundException. What i suspecting is, initially the table built with for example 5 rows, and if i delete one row, now it will become 4, but the table not refreshed with 4 rows, so when clicking the add button, it was trying to fetch 5 records. Please let me know how to rectify this problem. I am new to swings.
thanks in advance, regards, Sri.
Joined: Mar 15, 2005
I am using DefaultTableModel. I am using the functions as model.removeRow(), model.addRow().