System.err.println("display="+displayPoint);
    public static JPopupMenu getThumbnailMenu(final Thumbnail t)    {        final JMenuItem annotateItem = new JMenuItem("Annotate");        final JPopupMenu menu = new JPopupMenu()        {            public void show(Component arg0, int arg1, int arg2)            {                super.show(arg0, arg1, arg2);                Point p = arg0.getLocationOnScreen();                                final Point displayPoint = new Point(p.x+arg1,p.y+arg2);                System.err.println("display="+displayPoint);                                annotateItem.addActionListener(new ActionListener()                {                    public void actionPerformed(ActionEvent e)                    {                        PiccoloAction action =                            PiccoloActionFactory.getAnnotateImageAction(t,displayPoint);                        action.execute();                    }                });            }        };        JMenuItem openItem = new JMenuItem("Open");        openItem.addActionListener(new ActionListener()        {            public void actionPerformed(ActionEvent arg0)            {                PiccoloAction action =                    PiccoloActionFactory.getOpenInViewerAction(t);                action.execute();            }        });        menu.add(openItem);        menu.addSeparator();        JMenuItem infoItem = new JMenuItem("View Info");        infoItem.addActionListener(new ActionListener()        {            public void actionPerformed(ActionEvent e)            {                PiccoloAction action =                    PiccoloActionFactory.getInfoFromDMAction(t);                action.execute();                 }        });        menu.add(infoItem);        menu.add(annotateItem);                return menu;    }