ImageDisplay d = model.getBrowser().getSelectedDisplay();
    public void propertyChange(PropertyChangeEvent pce)    {        Browser browser = model.getBrowser();        ImageDisplay d = browser.getSelectedDisplay();        String propName = pce.getPropertyName();        if (Browser.POPUP_POINT_PROPERTY.equals(propName)) {            Point p = browser.getPopupPoint();            if (d != null && p != null) view.showPopup(d, p);        } else if (Browser.THUMB_SELECTED_PROPERTY.equals(propName)) {              ThumbWinManager.display((ImageNode) d, model);        } else if (TreeView.TREE_POPUP_POINT_PROPERTY.equals(propName))  {            TreeView treeView = model.getTreeView();            if (treeView == null) return; //tree shouldn't be null            Point p = treeView.getPopupPoint();            if (p != null) view.showPopup(((JComponent) pce.getNewValue()), p);        } else if (TreeView.CLOSE_PROPERTY.equals(propName)) {            model.showTreeView(false);        } else if (TreeView.SELECTED_DISPLAY_PROPERTY.equals(propName)) {            TreeView treeView = model.getTreeView();            if (treeView == null) return; //tree shouldn't be null            browser.setSelectedDisplay((ImageDisplay) pce.getNewValue());        } else if (Browser.SELECTED_DISPLAY_PROPERTY.equals(propName)) {            TreeView treeView = model.getTreeView();            if (treeView == null) return;             treeView.accept(new SelectedNodeVisitor(treeView, d));         }    }