if ((me.getModifiers() & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK) model.setSelectedDisplay(d, true); else model.setSelectedDisplay(d);
if (!(previousDisplay instanceof ImageNode)) b = false; model.setSelectedDisplay(d, b);
    public void mousePressed(MouseEvent me)    {        ImageDisplay d = findParentDisplay(me.getSource());        d.moveToFront();        if (d instanceof ImageNode) {            if ((me.getModifiers() & InputEvent.SHIFT_MASK) ==                 InputEvent.SHIFT_MASK)                model.setSelectedDisplay(d, true);            else model.setSelectedDisplay(d);        } else model.setSelectedDisplay(d);        if (me.isPopupTrigger()) popupTrigger = true;    }