public void actionPerformed(ActionEvent e) {
        if(e.getSource()==m11)
        {
            try {
                FileOutputStream f = new FileOutputStream("dessin");
                ObjectOutputStream out = new ObjectOutputStream(f);
                //out.writeObject(lesFormes);
                Iterator it=this.lesFormes.iterator();
                while(it.hasNext())
                {
                    Forme fo=(Forme)(it.next());
                    out.writeObject(fo);
                }
                out.close();
                f.close();
            } catch (Exception ex) {
                Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        if(e.getSource()==m12)
        {
            FileInputStream f = null;
            ObjectInputStream in = null;

            try {
                this.lesFormes.clear();
                f = new FileInputStream("dessin");
                in = new ObjectInputStream(f);
                //lesFormes=(ArrayList<Forme>)in.readObject();
                while(true)
                {
                    Forme fo=(Forme)(in.readObject());
                    this.lesFormes.add(fo);
                }

            } catch (Exception ex) {
                try {
                    in.close();
                    f.close();
                    this.zg.repaint();
                } catch (Exception ex1) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex1);
                }                                
            }
        }
        if(e.getSource()==m13)
        {
            Iterator it;
            it=this.lesFormes.iterator();
            while(it.hasNext())
            {
                Forme f=(Forme)(it.next());
                f.xf = zg.getWidth() - f.xf;
                f.xi= zg.getWidth() -f.xi;
            }
            this.zg.repaint();
        }
    }