How to create a list model from JList so that you can insert an element into it. I want to use this method: addElement(java.lang.Object item)
I found an explanation here , but the problem is that ListModel is an interface and even if I write an implementation and override its method, I cannot use the addElement() method
source share