Thread t = new Thread(new Runnable() {
public void run() {
duplicateItem.setEnabled(canDuplicate(psc));
duplicateItem.setLabel(BUNDLE.getString("Duplicate"));
duplicateItem.fireMenuItemRepaintListeners();
deleteItem.setEnabled(canDelete(sc, psc));
deleteItem.setLabel(BUNDLE.getString("Delete"));
deleteItem.fireMenuItemRepaintListeners();
}
}, "Cell palette security check");