T
timasmith
I have custom collection of my objects
MyModelList list;
which I wish to sort based upon the contents - which implement
Comparable.
Collections.sort(list);
is a beautiful thing - BUT to implement the list interface is asking a
bit much... there are 20 methods or more...
Extending Vector is not an option for me since I already extend the
AbstractTableModel so I can easily view my list in a JTable.
What else can I do to elegantly sort my custom list?
thanks
Tim
MyModelList list;
which I wish to sort based upon the contents - which implement
Comparable.
Collections.sort(list);
is a beautiful thing - BUT to implement the list interface is asking a
bit much... there are 20 methods or more...
Extending Vector is not an option for me since I already extend the
AbstractTableModel so I can easily view my list in a JTable.
What else can I do to elegantly sort my custom list?
thanks
Tim