This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes DefaultListModel and event dispatch thread Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "DefaultListModel and event dispatch thread" Watch "DefaultListModel and event dispatch thread" New topic
Author

DefaultListModel and event dispatch thread

Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

should you update list models in the event dispatch thread?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20048
    
  30

Definitely. Otherwise you can get nasty ArrayIndexOutOfBoundsExceptions and the like.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Wendy Gibbons
Bartender

Joined: Oct 21, 2008
Posts: 1107

i was getting them, pretty nasty
 
jQuery in Action, 3rd edition
 
subject: DefaultListModel and event dispatch thread
 
jQuery in Action, 3rd edition