ImageDisplay  newObject = (ImageDisplay) node.getUserObject();
Object uo = node.getUserObject(); if (uo instanceof String) return; ImageDisplay  newObject = (ImageDisplay) uo;
    void setSelectedNode()    {        DefaultMutableTreeNode node =            (DefaultMutableTreeNode) getLastSelectedPathComponent();        if (selectedNode == node) return;        ImageDisplay  newObject = (ImageDisplay) node.getUserObject();        ImageDisplay  oldObject = null;        if (selectedNode != null)            oldObject = (ImageDisplay) selectedNode.getUserObject();        firePropertyChange(ClipBoard.LOCALIZE_IMAGE_DISPLAY, oldObject,                            newObject);        selectedNode = node;    }