See attached application.
Launch main.java
you will see an application with ListView and TextArea (which plays a role of logger)
In project you can find customly implemented multi selection model (it is very simple and buggy in many cases, but mostly working). It writes all log in TextArea, if you press button "flush logger".
Don't do anything with list. Just press that button.
You can see, that method isSelected(int i) was called 20 times there. Even if there is empty list of items in list. This make bad impact on performance.
Launch main.java
you will see an application with ListView and TextArea (which plays a role of logger)
In project you can find customly implemented multi selection model (it is very simple and buggy in many cases, but mostly working). It writes all log in TextArea, if you press button "flush logger".
Don't do anything with list. Just press that button.
You can see, that method isSelected(int i) was called 20 times there. Even if there is empty list of items in list. This make bad impact on performance.