Changeset 1872

Show
Ignore:
Timestamp:
05/13/09 16:40:13 (3 years ago)
Author:
eitan
Message:

fixed an edt bug in compositetableview

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • jmatter-complet/trunk/modules/swingvm/src/com/u2d/view/swing/list/CompositeTableView.java

    r1668 r1872  
    159159   public void stateChanged(ChangeEvent e) 
    160160   { 
    161       if (_leo.parentObject() != null) 
    162       { 
    163          _addBtn.setEnabled(_leo.parentObject().isEditableState()); 
    164       } 
     161      SwingUtilities.invokeLater(new Runnable() { 
     162         public void run() 
     163         { 
     164            if (_leo.parentObject() != null) 
     165            { 
     166               _addBtn.setEnabled(_leo.parentObject().isEditableState()); 
     167            } 
     168         } 
     169      }); 
    165170   } 
    166171