I have created a class MyListModel that extended AbstractListModel to create my own list model for JList. I have added list selection listener and mouse listener.
If i try to load large number of data say more than 8000 or 9000, it gets long time to load.
I have checked it found , the override method "public Object getElementAt(int index)" in Mylistmodel gets called more than twice or thrice for all rows returned by the
override method " public int getSize()" , and at last it is called for number of visible rows. Due to this loading of list takes large time for large number of data.
Is it possible to reduce this number of calls to only one , or how can i reduce the loading time. Its very urgent please provide exact solution,