posted 15 years ago
dlm.removeAllElements() should work
you could also try
dlm.clear()
but if still not working, you've possibly declared dlm twice,
once as a class field (in your post), also where you load the model,
so the one referenced from your listener is not the same as the one with the elements