Output the content of a LinkedHasHSet into a JTable
问题 I have a LinkedHashSet of Book objects. The Book objects have the following fields: private int id; private String author = ""; private String title = ""; private boolean isRead; private String dateStamp = ""; private static int counter = 0; I want them to go into my JTable which has the following columns: String [] columnNames = {"ID","Title", "Author", "Status", "Date Read"}; How can I do this? And is it possible to have the isRead field being editable through a checkbox in the table? 回答1: