Den 15.06.2011 22:23, skrev Greg Brown:
OK. Well, the reason that this isn't supported is simply development effort. 
Nested collections like TabPane's TabSequence fire events. In order to support 
remove(), we'd need to write a custom iterator for each nested sequence, so 
that it would fire events appropriately. And it is not as simple as just having 
the iterator's remove() method remove the element from the backing collection, 
because that would generate a ConcurrentModificationException. So, we 
sidestepped the issue by making the iterators for nested sequences read only.

Given this, your approach of copying the items you want to remove is probably 
the best solution.

No problem, I'll just make a utility method :)

-- Edvin

Reply via email to