Results 1 to 2 of 2
  1. #1
    ERUKSPATEL is offline Member
    Join Date
    Jan 2011
    Rep Power

    Default DefaultListModel Issue


    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.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Blog Entries
    Rep Power


    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

Similar Threads

  1. Printing DefaultListModel to .txt
    By Embercloud in forum New To Java
    Replies: 6
    Last Post: 01-14-2011, 05:26 AM
  2. Wierd delay in DefaultListModel.addElement()
    By DaedalusAlpha in forum AWT / Swing
    Replies: 4
    Last Post: 04-19-2010, 07:51 AM
  3. nio issue
    By mawandiadeepak in forum Networking
    Replies: 2
    Last Post: 03-17-2010, 06:23 AM
  4. DefaultListModel Elements
    By jboy in forum New To Java
    Replies: 7
    Last Post: 10-24-2009, 03:23 AM
  5. Replies: 3
    Last Post: 04-24-2009, 06:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts