Copy Data from JTable into ArrayList
问题 Hi how can I copy data from my JTable into an ArrayList? I dont want the first row which is the columns name, I want everyother row. Thanks 回答1: If you are storing the data in the table with out using any object then just traverse row by row on the table and get every object and store it in the List. Example: This is when you are using a list to store the data. List<Object> list = new ArrayList<Object>; for(int row = 0; row < table.getRowCount(); row++) { for(int column = 0; column = table