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