This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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: 19847
    
  20

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


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

Joined: Oct 21, 2008
Posts: 1107

i was getting them, pretty nasty
 
Don't get me started about those stupid light bulbs.
 
subject: DefaultListModel and event dispatch thread