File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 1106

should you update list models in the event dispatch thread?

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19543
    
  16

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: 1106

i was getting them, pretty nasty
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: DefaultListModel and event dispatch thread
 
Similar Threads
JProgressbar problem!
Event Dispatch Thread
JList not showing updated values
retrieving event dispatch thread
SwingWorker and Communications with GUI