annotate = new JMenuItem("Annotate", im.getIcon(IconManager.ANNOTATE)),
    private ThumbWinPopupMenu()    {        IconManager im = IconManager.getInstance();        JMenuItem properties = new JMenuItem("Properties",                                   im.getIcon(IconManager.PROPERTIES)),                  annotate = new JMenuItem("Annotate",                                   im.getIcon(IconManager.ANNOTATE)),                  classify = new JMenuItem("Add to category"),                  declassify = new JMenuItem("Remove from category"),                  view = new JMenuItem("View", im.getIcon(IconManager.VIEWER));        setBorder(BorderFactory.createBevelBorder(BevelBorder.RAISED));        add(properties);        add(annotate);        add(createClassifySubMenu(classify, declassify));        add(new JSeparator(SwingConstants.HORIZONTAL));        add(view);        properties.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae)            {                new PropertiesCmd(currentWin.getDataObject()).execute();            }        });        annotate.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae)            {                new AnnotateCmd(currentWin.getDataObject()).execute();            }        });        classify.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae)            {                ClassifyCmd cmd = new ClassifyCmd(                        (ImageData) currentWin.getDataObject(),                         Classifier.CLASSIFICATION_MODE,                         currentWin.getParentFrame());                cmd.execute();            }        });        declassify.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae)            {                ClassifyCmd cmd = new ClassifyCmd(                        (ImageData) currentWin.getDataObject(),                         Classifier.DECLASSIFICATION_MODE,                        currentWin.getParentFrame());                cmd.execute();            }        });        view.addActionListener(new ActionListener() {            public void actionPerformed(ActionEvent ae)            {                new ViewCmd(currentWin.getDataObject()).execute();            }        });    }