I have a DefaultListModel and scores of objects have been added to it.
Multiple objects can be selected and some operation is performed on those which is time consuming.
It blocks the selected object and the thread has to wait til the operation is over. I want a solution such that I can unselect the selected objects and select some more objects and perform a different operation.Kindly suggest a solution.Inputs will be greatly appreciated.
This question appears similar to another question from earlier today -- unable-select-deselect-items-jlist-while-performing-some-task, and the solution appears to be the same -- do the time-consuming task in a background thread such as that provided by a SwingWorker. For more details on what you need to do, please have a look here: Concurrency in Swing