Making ArrayList to JTable
问题 I have an ArrayList<Map<String, Object>> Object, I need to display the content of this array in a JTable. The Map - Key is the column name and Object is the data, how can I put it up? Baiscally the Map contains multiple-rows from a table and all the rows are added to the array list, now I need to display them in a Swing application in the form of a table and perform sorting and filtering on them. 回答1: For datas embed your list in a TableModel. A DefaultTableModel is best. For columns, embed