int datasetID = actionTarget.getDataset().getID(); String name = actionTarget.getDataset().getName(); agent.loadCategories(datasetID,name);
ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI(); ui.setClosable(true); ui.setIconifiable(true); ui.setResizable(false); ui.setMaximizable(false); if(!ui.isShowing()) { tf.addToDesktop(ui,TopFrame.PALETTE_LAYER); ui.show(); } else { try { ui.setSelected(true); } catch(PropertyVetoException ex) {} }
            public void actionPerformed(ActionEvent ae)            {                int datasetID = actionTarget.getDataset().getID();                String name = actionTarget.getDataset().getName();                agent.loadCategories(datasetID,name);            }