For the purposes of a generic-style TableModel it would be nice to be able to get the attributes of an object. It is apparently possible to get the field names and values using reflection. However, is there a way to get these according to the order of declaration? If not, do you know of a workaround that could be used in the above example? I’ve been thinking along the lines of initializing the TableModel with an ordered list.
For the purposes of a generic-style TableModel it would be nice to be able
Share
Create out own annotation:
and then annotate your fields
Then you can use reflection