I would like to visualize a Set of Threads, something like: Set<ThreadInfo>
. I choose Set
, as every Thread in the JVM is unique. With the choice of displaying it with the component JTable in Java Swing I am facing some issues.
I need to implement a TableModel. TableModel relies on getValueAt(int row, int col)
or setValueAt(Object o, int row, int col)
in order to propagate changed values.
But how do I implement these methods using a Set as the data model? With a list I would say row = list index, but with a set I cannot make assumptions about the elements order.