public void actionPerformed(ActionEvent arg0)   {
           Component apane = environment.tabbed.getSelectedComponent();
           JComponent c=(JComponent)environment.getActive();
           SaveGraphUtility.saveGraph(apane, c,"GIF files", "gif"); 
    }