IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Format d'échange (XML, JSON...) Java Discussion :

Petite précision sur la serialisation XML


Sujet :

Format d'échange (XML, JSON...) Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 327
    Par défaut Petite précision sur la serialisation XML
    Bonsoir,

    Voila ma situation est la suivante, j'ai un vector d'objets "Case" et cet objet contient lui même un attribut vector "figure" et j'aimerai serialiser le vector de "Case" dans un XML, j'utilise donc la classe XMLEncoder et XMLDecoder, je sauvegarde mon vector d'objets "Case" et le contenu s'inscrit bien dedans, jusque là pas de problème, seulement il y a des petites imperfections comme le fait que tout le contenu de mon vector attibut "figure" n'est pas indiqué il manque certains index à chaque fois ce qui me provoque un résultat en petite parti éroné et je ne comprend pas pourquoi.

    Pour être plus clair je vous fourni le code et son résultat:

    Jeton.java

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    package test;
     
    import java.util.Arrays;
    import java.util.Random;
    import java.util.Vector;
     
    public class Jeton {
    	private Vector<String> formes = new Vector<String> (Arrays.asList ("triangle", "carre", "pentagone"));
    	private Vector<String> couleurs = new Vector<String> (Arrays.asList ("rouge", "jaune", "vert", "bleu"));
    	private Integer symbole = new Random ().nextInt (5) + 1;
     
    		public Vector<String> hasard () {
    			Vector<String> figure = new Vector<String> ();
     
    			figure.add (this.formes.get ((int)(Math.random () * this.formes.size ())));
    			figure.add (this.couleurs.get((int)(Math.random () * this.couleurs.size ())));
    			figure.add (this.symbole.toString ());
     
    			return figure;
    		}
    }
    Case.java

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    package test;
     
    import java.util.Vector;
     
    public class Case {
    	Vector<String> figure = new Vector<String> ();
     
    		public Case () {
    			this.figure = this.jeton.hasard ();
    		}
     
    		public String toString () {
    			return "forme: " + this.figure.get (0) + " couleur: " + this.figure.get (1) + " symbole: " + this.figure.get (2);
    		}
     
    		public Vector<String> getFigure () {
    			return this.figure;
    		}
     
    		public void setFigure (Vector<String> figure) {
    			this.figure = figure;
    		}
     
    }
    Sauvegarde.java

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    package test;
     
    import java.beans.XMLEncoder;
    import java.io.FileOutputStream;
    import java.beans.XMLDecoder;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.IOException;
     
    public final class SauvegardeObjet 
    { 
        public static void sauverVersXML(Object objet, String fichier) 
        {
        	System.out.println (fichier);
            try
            {
                XMLEncoder enc = new XMLEncoder(new FileOutputStream(fichier));
     
                try
                {
                    enc.writeObject(objet);
                    enc.flush();
                }
     
                finally
                {
                    enc.close();
                }
            }
     
            catch (FileNotFoundException e)
            {
                e.printStack ();
            } 
        }
     
        public static Object chargerDepuisXML(String fichier)
        {
        	System.out.println (fichier);
            Object retour = null;
     
            try
            {
                XMLDecoder dec = new XMLDecoder(new FileInputStream(fichier));
     
                try
                {
                    retour = dec.readObject();
                }
     
                finally
                {
                    dec.close();
                }
     
            }
     
            catch (FileNotFoundException e)
            {
                e.printStack ();
            }
     
            return retour;
        }
    }
    Le main

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    package test;
     
    import java.util.Vector;
     
    public class TestSerial {
    	public static void main (String[] args) {
    		Vector<Case> tabCas = new Vector<Case> ();
    		Vector<Object> tabCas2 = new Vector<Object> ();
    		Case c1 = new Case ();
    	    Case c2 = new Case ();
    	    Case c3 = new Case ();
    	    Case c4 = new Case ();
     
    	    tabCas.add (c1);
    	    tabCas.add (c2);
    	    tabCas.add (c3);
    	    tabCas.add (c4);
                System.out.println (Initialisation:);
    	    System.out.println (tabCas.get (0));
    	    System.out.println (tabCas.get (1));
    	    System.out.println (tabCas.get (2));
    	    System.out.println (tabCas.get (3));
    	    SauvegardeObjet.sauverVersXML (tabCas, "C:\\Users\\scary\\Desktop\\Test.xml");
    	    tabCas2 = (Vector<Object>)SauvegardeObjet.chargerDepuisXML("C:\\Users\\scary\\Desktop\\Test.xml");
                System.out.println (Resultat:);
    	    System.out.println (tabCas2.get (0));
    	    System.out.println (tabCas2.get (1));
    	    System.out.println (tabCas2.get (2));
    	    System.out.println (tabCas2.get (3));
    	}
    }
    Le fichier Test.xml

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    <?xml version="1.0" encoding="UTF-8"?> 
    <java version="1.6.0_16" class="java.beans.XMLDecoder"> 
     <object class="java.util.Vector"> 
      <void method="add"> 
       <object class="test.Case"> 
        <void property="figure"> 
         <void index="0"> 
          <string>triangle</string> 
         </void> 
         <void index="1"> 
          <string>vert</string> 
         </void> 
         <void index="2"> 
          <string>3</string> 
         </void> 
        </void> 
       </object> 
      </void> 
      <void method="add"> 
       <object class="test.Case"> 
        <void property="figure"> 
         <void index="0"> 
          <string>triangle</string> 
         </void> 
         <void index="2"> 
          <string>5</string> 
         </void> 
        </void> 
       </object> 
      </void> 
      <void method="add"> 
       <object class="test.Case"> 
        <void property="figure"> 
         <void index="1"> 
          <string>jaune</string> 
         </void> 
        </void> 
       </object> 
      </void> 
      <void method="add"> 
       <object class="test.Case"> 
        <void property="figure"> 
         <void index="0"> 
          <string>triangle</string> 
         </void> 
         <void index="1"> 
          <string>bleu</string> 
         </void> 
         <void index="2"> 
          <string>5</string> 
         </void> 
        </void> 
       </object> 
      </void> 
     </object> 
    </java>
    Le resultat (vous pouvez voir que l'affichage initial et le resultat de la 3ème ligne ne correspondent pas)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    Initialisation:
    forme: triangle couleur: vert symbole: 3
    forme: triangle couleur: bleu symbole: 5
    forme: pentagone couleur: jaune symbole: 1
    forme: triangle couleur: bleu symbole: 5
    Resultat:
    forme: triangle couleur: vert symbole: 3
    forme: triangle couleur: bleu symbole: 5
    forme: triangle couleur: jaune symbole: 2
    forme: triangle couleur: bleu symbole: 5
    Voila j'espere avoir été clair, Merci d'avance à vous

  2. #2
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 327
    Par défaut
    C'est bon j'ai pu résoudre ce petit ennuie en modifiant le constructeur. Sinon un autre problème ce présente à moi lorsque je rajoute des listeners sur mes panels dans cette classe:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    package test;
     
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import java.awt.GridBagConstraints;
    import java.awt.GridBagLayout;
    import java.awt.Insets;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.util.Vector;
     
    import javax.swing.BorderFactory;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.border.Border;
     
    public class Grille extends JFrame implements MouseListener {
    	private static final long serialVersionUID = 8624698335866298502L;
    	private int HAUTEUR;
    	private int LARGEUR;
    	private Case[][] jeux;
    	private Segment affTemps = new Segment ();
    	private Temps temps = new Temps (this.affTemps);
    	//private int nCases;
    	private JPanel panneauJeux = new JPanel ();
    	private boolean debut = true;
    	private JPanel panneauHaut = new JPanel ();
    	private Border borderPanneaux;
    	private GridBagLayout layoutPanneauJeux = new GridBagLayout ();
    	private Case case1;
    	private Case case2;
     
    		public Grille (int hauteur, int largeur) {
    			this.HAUTEUR = hauteur;
    			this.LARGEUR = largeur;
    			this.jeux = new Case[HAUTEUR][LARGEUR];
     
    			for (int i=0;i<HAUTEUR;i++) {
    				for (int j=0;j<LARGEUR;j++) {
    					jeux[i][j] = new Case (this);
    				}
    			}
    			this.nouveau ();
    			this.jbInit (); 
    		}
     
    		public void setCase1 (Case case1) {
    			this.case1 = case1;
    		}
     
    		public void setCase2 (Case case2) {
    			this.case2 = case2;
    		}
     
    		public Case getCase1 () {
    			return this.case1;
    		}
     
    		public Case getCase2 () {
    			return this.case2;
    		}
     
    		public void sauver () {
    			for (int i=0;i<this.HAUTEUR;i++) {
    				for (int j=0;j<this.LARGEUR;j++) {
    					this.jeux[i][j].removeMouseListener(this);
    				}
    			}
    			SauvegardeObjet.sauverVersXML (this.jeux, "Test.xml");
    		}
     
    		public void charger () {
    			this.jeux = (Case[][])SauvegardeObjet.chargerDepuisXML ("Test.xml");
    			//this.jbInit ();
    			for (int i=0;i<this.HAUTEUR;i++) {
    				for (int j=0;j<this.LARGEUR;j++) {
    					this.jeux[i][j].addMouseListener (new MouseAdapter () {
    						public void mousePressed (MouseEvent e) {
    							if (debut) {
    								temps.start ();
    								debut = false;
    							}
    						}
    					});
    				}
    			}
    		}
     
    		public void nouveau () {
    			//this.nCases = this.HAUTEUR * this.LARGEUR;
    			this.affTemps.setValeur (0);
    			this.panneauJeux.setVisible (true);
    			for (int i=0;i<this.HAUTEUR;i++) {
    				for (int j=0;j<this.LARGEUR;j++) {
    					this.jeux[i][j].reset ();
    					this.jeux[i][j].removeMouseListener(this); //necessaire pour eviter un bug lors de l'appel de nouveau() une 2eme fois
    					this.jeux[i][j].addMouseListener (new MouseAdapter () {
    						public void mousePressed (MouseEvent e) {
    							if (debut) {
    								temps.start ();
    								debut = false;
    							}
    						}
    					});
    					/*this.jeux[i][j].setX (j);
    					this.jeux[i][j].setY (i);*/
    				}
    			}
    			this.repaint (); 
    		}
     
    		private void jbInit () {
    			  borderPanneaux = BorderFactory.createEtchedBorder (Color.WHITE, new Color (156, 156, 156));
    			  int tailleX = LARGEUR * 100 + 20; //20 pour la marge
    			  int tailleY = HAUTEUR * 100 + 20;
    			  JMenuBar menuBar = new JMenuBar ();
    			  JMenu menu1 = new JMenu ("Fichier");
    			  JMenuItem save = new JMenuItem (new SaveAction (this, "Sauvegarder une partie"));
    			  JMenuItem load = new JMenuItem (new LoadAction (this, "Charger une partie"));
     
    			  if (tailleX < 160) {
    				  tailleX = 150; //taille minimum en largeur
    			  }
    			  this.setSize (tailleX + 6, tailleY + 50 + 23 + 25); //6=largeur du cadre de la fenetre, 25=hauteur de la barre windows
    			  menu1.add (save);
    			  menu1.add (load);
    			  menuBar.add (menu1);
    			  this.setJMenuBar (menuBar);
    			  this.setTitle ("Jeu");
    			  this.setResizable (false);
    			  this.setLocationRelativeTo (null);
     
    			  this.affTemps.setMaximumSize (new Dimension (49, 27));
    			  this.panneauHaut.setBorder (this.borderPanneaux);
    			  this.panneauHaut.setPreferredSize (new Dimension (450, 50));
    			  this.panneauJeux.setBorder (this.borderPanneaux);
    			  this.panneauJeux.setPreferredSize (new Dimension (tailleX, tailleY));
    			  this.panneauJeux.setLayout (this.layoutPanneauJeux);
    			  this.affTemps.setValeur (0);
    			  this.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    			  this.panneauHaut.add (this.affTemps, BorderLayout.CENTER);
    			  this.getContentPane ().add (this.panneauHaut, BorderLayout.NORTH);
    			  this.getContentPane ().add (this.panneauJeux, BorderLayout.CENTER);
    			  for (int i = 0; i < HAUTEUR; i++) {
    				  for (int j = 0; j < LARGEUR; j++) {
    					  this.panneauJeux.add (this.jeux[i][j], new GridBagConstraints (j, i, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets (0, 0, 0, 0), 0, 0));
    				  }
    			  }
    		}
     
    		public void verif () {
    			if (this.case1 != null && this.case2 != null) {
    				Vector<String> figureCase1 = this.case1.getFigure ();
    				Vector<String> figureCase2 = this.case2.getFigure ();
    				boolean bon = false;
     
    				if (figureCase1.get(0).equals (figureCase2.get (0))) { // meme forme
    					if (figureCase1.get(1).equals (figureCase2.get (1))) { // meme couleur
    						if (figureCase1.get(2).equals (figureCase2.get (2))) { // meme symbole
    							this.case1.setVide (true);
    							this.case2.setVide (true);
    							this.case1 = null;
    							this.case2 = null;
    							bon = true;
    							JOptionPane.showMessageDialog (this, "meme forme, meme couleur et meme symbole");
    							return ;
    						}
    					}
    				}
    				if (figureCase1.get(0).equals (figureCase2.get (0))) { // meme forme
    					if (figureCase1.get(1).equals (figureCase2.get (1))) { // meme couleur
    						this.case1.setVide (true);
    						this.case2.setVide (true);
    						this.case1 = null;
    						this.case2 = null;
    						bon = true;
    						JOptionPane.showMessageDialog (this, "meme forme et meme couleur");
    						return ;
    					}
    				}
    				if (figureCase1.get(0).equals (figureCase2.get (0))){ // meme forme
    					if (figureCase1.get(2).equals (figureCase2.get (2))) { // meme symbole
    						this.case1.setVide (true);
    						this.case2.setVide (true);
    						this.case1 = null;
    						this.case2 = null;
    						bon = true;
    						JOptionPane.showMessageDialog (this, "meme forme et meme symbole");
    						return ;
    					}
    				}
    				if (figureCase1.get(0).equals (figureCase2.get (0))) { // meme forme
    					this.case1.setVide (true);
    					this.case2.setVide (true);
    					this.case1 = null;
    					this.case2 = null;
    					bon = true;
    					JOptionPane.showMessageDialog (this, "meme forme");
    					return ;
    				}
    				if (figureCase1.get(1).equals (figureCase2.get (1))) { // meme couleur
    					if (figureCase1.get(2).equals (figureCase2.get (2))) { // meme symbole
    						this.case1.setVide (true);
    						this.case2.setVide (true);
    						this.case1 = null;
    						this.case2 = null;
    						bon = true;
    						JOptionPane.showMessageDialog (this, "meme couleur et meme symbole");
    						return ;
    					}
    				}
    				if (figureCase1.get(1).equals (figureCase2.get (1))) { // meme couleur
    					this.case1.setVide (true);
    					this.case2.setVide (true);
    					this.case1 = null;
    					this.case2 = null;
    					bon = true;
    					JOptionPane.showMessageDialog (this, "meme couleur");
    					return ;
    				}
    				if (figureCase1.get(2).equals (figureCase2.get (2))) { // meme symbole
    					this.case1.setVide (true);
    					this.case2.setVide (true);
    					this.case1 = null;
    					this.case2 = null;
    					bon = true;
    					JOptionPane.showMessageDialog (this, "meme symbole");
    					return ;
    				}
    				if (!bon) {
    					JOptionPane.showMessageDialog (this, "Les deux cases ne sont pas compatibles");
    					this.case1.setSelected (false);
    					this.case2.setSelected (false);
    					this.case1 = null;
    					this.case2 = null;
    				}
    			}
    		}
     
    		@Override
    		public void mouseClicked(MouseEvent arg0) {
    			// TODO Auto-generated method stub
     
    		}
     
    		@Override
    		public void mouseEntered(MouseEvent arg0) {
    			// TODO Auto-generated method stub
     
    		}
     
    		@Override
    		public void mouseExited(MouseEvent arg0) {
    			// TODO Auto-generated method stub
     
    		}
     
    		@Override
    		public void mousePressed(MouseEvent arg0) {
    			// TODO Auto-generated method stub
     
    		}
     
    		@Override
    		public void mouseReleased(MouseEvent arg0) {
    			// TODO Auto-generated method stub
     
    		}
    }
    Plus précisemment c'est ces 2 fonctions qui vont pas:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    public void nouveau () {
    			//this.nCases = this.HAUTEUR * this.LARGEUR;
    			this.affTemps.setValeur (0);
    			this.panneauJeux.setVisible (true);
    			for (int i=0;i<this.HAUTEUR;i++) {
    				for (int j=0;j<this.LARGEUR;j++) {
    					this.jeux[i][j].reset ();
    					this.jeux[i][j].removeMouseListener(this); //necessaire pour eviter un bug lors de l'appel de nouveau() une 2eme fois
    					this.jeux[i][j].addMouseListener (new MouseAdapter () {
    						public void mousePressed (MouseEvent e) {
    							if (debut) {
    								temps.start ();
    								debut = false;
    							}
    						}
    					});
    					/*this.jeux[i][j].setX (j);
    					this.jeux[i][j].setY (i);*/
    				}
    			}
    			this.repaint (); 
    		}
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    private void jbInit () {
    			  borderPanneaux = BorderFactory.createEtchedBorder (Color.WHITE, new Color (156, 156, 156));
    			  int tailleX = LARGEUR * 100 + 20; //20 pour la marge
    			  int tailleY = HAUTEUR * 100 + 20;
    			  JMenuBar menuBar = new JMenuBar ();
    			  JMenu menu1 = new JMenu ("Fichier");
    			  JMenuItem save = new JMenuItem (new SaveAction (this, "Sauvegarder une partie"));
    			  JMenuItem load = new JMenuItem (new LoadAction (this, "Charger une partie"));
     
    			  if (tailleX < 160) {
    				  tailleX = 150; //taille minimum en largeur
    			  }
    			  this.setSize (tailleX + 6, tailleY + 50 + 23 + 25); //6=largeur du cadre de la fenetre, 25=hauteur de la barre windows
    			  menu1.add (save);
    			  menu1.add (load);
    			  menuBar.add (menu1);
    			  this.setJMenuBar (menuBar);
    			  this.setTitle ("Jeu");
    			  this.setResizable (false);
    			  this.setLocationRelativeTo (null);
     
    			  this.affTemps.setMaximumSize (new Dimension (49, 27));
    			  this.panneauHaut.setBorder (this.borderPanneaux);
    			  this.panneauHaut.setPreferredSize (new Dimension (450, 50));
    			  this.panneauJeux.setBorder (this.borderPanneaux);
    			  this.panneauJeux.setPreferredSize (new Dimension (tailleX, tailleY));
    			  this.panneauJeux.setLayout (this.layoutPanneauJeux);
    			  this.affTemps.setValeur (0);
    			  this.setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
    			  this.panneauHaut.add (this.affTemps, BorderLayout.CENTER);
    			  this.getContentPane ().add (this.panneauHaut, BorderLayout.NORTH);
    			  this.getContentPane ().add (this.panneauJeux, BorderLayout.CENTER);
    			  for (int i = 0; i < HAUTEUR; i++) {
    				  for (int j = 0; j < LARGEUR; j++) {
    					  this.panneauJeux.add (this.jeux[i][j], new GridBagConstraints (j, i, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets (0, 0, 0, 0), 0, 0));
    				  }
    			  }
    		}
    Et encore un peu plus precisemment ces deux bout de codes:

    Dans jbInit ():

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    for (int i = 0; i < HAUTEUR; i++) {
    				  for (int j = 0; j < LARGEUR; j++) {
    					  this.panneauJeux.add (this.jeux[i][j], new GridBagConstraints (j, i, 1, 1, 0.0, 0.0, GridBagConstraints.CENTER, GridBagConstraints.NONE, new Insets (0, 0, 0, 0), 0, 0));
    				  }
    			  }
    Et dans nouveau ():

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    this.jeux[i][j].addMouseListener (new MouseAdapter () {
    						public void mousePressed (MouseEvent e) {
    							if (debut) {
    								temps.start ();
    								debut = false;
    							}
    						}
    					});
    Et lorsque j'execute l'action "sauvegarder la partie" voici l'erreur que j'ai:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.Exception: Encoder: discarding statement Case.setVide(Boolean);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.Exception: Encoder: discarding statement Case.setVide(Boolean);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    java.lang.InstantiationException: xianxiang.Grille$2
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addMouseListener(Grille$2);
    Continuing ...
    java.lang.InstantiationException: java.beans.PropertyChangeListenerProxy
    Continuing ...
    java.lang.Exception: XMLEncoder: discarding statement Case.addPropertyChangeListener(PropertyChangeListenerProxy);
    Continuing ...
    Si quelqu'un peut m'éclairer svp

  3. #3
    Membre éclairé
    Profil pro
    Inscrit en
    Juin 2005
    Messages
    731
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2005
    Messages : 731
    Par défaut
    Bonjour,
    le problème vient du constructeur Case car c'est lui qui crée une figure aléatoire.
    Il faudrait une méthode dédiee sur la classe Case qui reprend ce que fait le constructeur.

    Car lorsque les lignes suivantes s'exécutent :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    	    System.out.println (tabCas2.get (0));
    	    System.out.println (tabCas2.get (1));
    	    System.out.println (tabCas2.get (2));
    	    System.out.println (tabCas2.get (3));
    Le cast implicite appelle implicitement le constructeur par défaut qui crée une nouvelle fois un objet aléatoire

  4. #4
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 327
    Par défaut
    J'avais trouvé oui mais merci de cette remarque Mais maintenant j'ai un autre problème comme je l'ai expliquer tout juste avant que tu me réponde

  5. #5
    Membre éclairé
    Profil pro
    Inscrit en
    Mars 2008
    Messages
    327
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2008
    Messages : 327
    Par défaut
    C'est bon j'ai trouvé merci quand même

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 26/10/2007, 15h48
  2. Réponses: 5
    Dernier message: 15/06/2007, 15h12
  3. petite précision sur gtk_main_quit()
    Par bit_o dans le forum GTK+ avec C & C++
    Réponses: 4
    Dernier message: 19/04/2007, 21h20
  4. Petite précision sur les pointeurs
    Par Fonzy007 dans le forum C
    Réponses: 2
    Dernier message: 07/12/2006, 11h25
  5. [XPath] petite précision sur type de syntaxe
    Par Royd938 dans le forum XSL/XSLT/XPATH
    Réponses: 4
    Dernier message: 15/06/2006, 12h13

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo