Arrays and Tables.....
Two questions.
1) How do you (if it is possible) make a dynamic array? A user is entering data in and I don't know how many entries there will be. Is there a way or am I just stuck guessing?
2) Using a DefaultTableModel the customer inputs one line at a time, the data goes into the array and the row is cleared. And then the customer can either input a new row or hit show all (which will show the data in the array). My problem is that the cell that is still selected the data stays there after the row is cleared (the data goes into the array fine). If I select another cell, that one stays. If I select another cell and then the column header it clears it all.
Thank Ye.
1) How do you (if it is possible) make a dynamic array? A user is entering data in and I don't know how many entries there will be. Is there a way or am I just stuck guessing?
2) Using a DefaultTableModel the customer inputs one line at a time, the data goes into the array and the row is cleared. And then the customer can either input a new row or hit show all (which will show the data in the array). My problem is that the cell that is still selected the data stays there after the row is cleared (the data goes into the array fine). If I select another cell, that one stays. If I select another cell and then the column header it clears it all.
Thank Ye.
