I'm starting to mess with JTable but I have a question. I can see this post here in another one forum and my doubt is. In case it passes to the model of the table a list of type book:
private List<Livro> valores;
public TitulosTableModel(List<Livro> valores) {
this.valores = new ArrayList<Livro>(valores);
}
But in my example, I have several entities (not to using book), student, teacher, discipline etc ... I will have to make a table model for each entity, or have a way to make the generic table model, to receive a list of any type of object?