Project

General

Profile

Actions

Bug #499

closed

Swing changes outside the event thread

Added by Dan Higgins over 22 years ago. Updated about 22 years ago.

Status:
Resolved
Priority:
Immediate
Assignee:
Category:
morpho - general
Target version:
Start date:
05/08/2002
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
499

Description

When the SwingWorker class was added to Morpho to create new threads for
time-consuming tasks, some modifications to Swing components were apparently
moved outside the event thread. This is not allowed since Swing components are
not multithreaded. Problems have not been noted during normal operation of
Morpho but may cause subtle problems in the future. (Bug noted during attempts
to convert Morpho to run with Java Web Start).

In particular, there are a number of modifications made to the treenode
structure in the XML editor outside the event thread. This would not appear to
be a problem until a new DefaultTreeModel is created and a method like 'reload'
is called. According to the documentation, this method triggers the Model to
notify all listeners that the model has changed.

Actions

Also available in: Atom PDF