posted 16 years ago
Ummm, the agentList contains AgentDisplayObjects, and I don't know more than that. Somebody else wrote the code and I am just trying to understand it, and possibly fix that pesky ClassCastException.
Are you suggesting that the contents of agentList might the problem?
I originally thought simply that you couldn't addAll() an ArrayList into a TreeSet. So I was hoping for advice about getting around that, like maybe a different method to use to accomplish the purpose.
Dorcas