Just realised I didnt answer your question at all in the previous post, but the reason that the code doesnt work is because rowList is an instance variable.
For the first iteration of the while loop say it adds
Date, Transaction, "Number", "Cr Amount", "Dr Amount
[0]2003/4/56, [1] 2, [2] 123456,[3] null, [4]$5.00
This is added to dataList(0)
At the start of the next iteration you get the next entry.
But you havent cleared the rowList
So you want to add to datalist(1)
[0]2004/4/4, [1] 2, [2] 123423,[3] $10.00, [4]$5.00
But you are actually appending it to the previous entry also and so the list keeps getting bigger for each entry put in.
[0]2003/4/12, [1] 1, [2] 123456,[3] null, [4]$5.00
[5]2004/4/4, [6] 2, [7] 123423,[8] $10.00, [9]$5.00
Now when JTable looks for row data it displays the first 5 elements which are always the same in each row.
Solution is to just make RowList a local variable in the while loop
while(entriesIterator.hasMoreElements()){
List rowList=new List();
// Rest of your code
}
Hope this solves the problem, best of luck with it.