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

Composants Java Discussion :

Jlist Ajouter retirer


Sujet :

Composants Java

  1. #1
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut Jlist Ajouter retirer
    Bonjour,

    J'utilise une JDialog avec une 2 JList a l'interieur. je construit la premiere avec une ListModel. J'ai un bouton qui doit, lorsque l'on clique clique dessus :

    - Enlever l'item de la premiere JList.
    - Ajouter l'item a la seconde.

    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
    import java.awt.BorderLayout;
    import java.awt.Choice;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.sql.SQLException;
    import java.util.Vector;
    import javax.swing.DefaultListModel;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.ListSelectionModel;
    import javax.swing.border.EtchedBorder;
    import javax.swing.border.TitledBorder;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    /**
     *
     * @author Anthony
     */
    public class WindowAddAssociation extends JFrame implements ActionListener{
        private Agl a = null;
        private JPanel conteneur=null;
        private JPanel choixEntite=null;
        private JPanel association=null;
        private JPanel barre=null;
        private JPanel milieu=null;
        private JButton ok_ajout;
        private JButton non_ajout;
        private JButton enlever_entite;
        private JButton ajout_entite;
        private JButton ajout_attribut;
        private JLabel titre;
        private JTextField text;
        private JList list;
    
        DefaultListModel l = new DefaultListModel();
        DefaultListModel l2 = new DefaultListModel();
        /** Creates a new instance of WindowAddAssociation */
        public WindowAddAssociation(Agl a,CollectionEntite col) throws SQLException {
            this.a=a;
            conteneur=new JPanel();
            this.setContentPane(conteneur);
            this.setTitle("AGL-Ajout d'une Association");
            conteneur.setLayout(null);
            this.setSize(700,600);
            this.setLocationRelativeTo(null);
            this.setResizable(false);
            
            
            choixEntite=new JPanel();
            choixEntite.setLayout(null);
            choixEntite.setBorder(new TitledBorder("Choix Entité"));
            choixEntite.setBounds(5,5,285,495);
            conteneur.add(choixEntite);
            
            association=new JPanel();
            association.setLayout(null);
            association.setBorder(new TitledBorder("Association"));
            association.setBounds(405,5,285,495);
            conteneur.add(association);
            
            barre=new JPanel();
            barre.setLayout(null);
            barre.setBounds(5,500,685,65);
            conteneur.add(barre);
            
            milieu=new JPanel();
            milieu.setLayout(null);
            milieu.setBounds(290,5,120,495);
            conteneur.add(milieu);
            
            this.setVisible(true);
            
            
            ok_ajout=new JButton("ok");
            ok_ajout.setBounds(150,20,100,25);
            ok_ajout.setForeground(Color.black);
            ok_ajout.setBackground(Color.WHITE);
            ok_ajout.addActionListener(this) ;
            barre.add(ok_ajout);
                
            non_ajout=new JButton("annuler");
            non_ajout.setBounds(450,20,100,25);
            non_ajout.setForeground(Color.black);
            non_ajout.setBackground(Color.WHITE);
            non_ajout.addActionListener(this) ;
            barre.add(non_ajout);
            
            ajout_entite=new JButton(">>");
            ajout_entite.setBounds(10,140,100,25);
            ajout_entite.setForeground(Color.black);
            ajout_entite.setBackground(Color.WHITE);
            ajout_entite.addActionListener(this) ;
            milieu.add(ajout_entite);
            
            enlever_entite=new JButton("<<");
            enlever_entite.setBounds(10,340,100,25);
            enlever_entite.setForeground(Color.black);
            enlever_entite.setBackground(Color.WHITE);
            enlever_entite.addActionListener(this) ;
            milieu.add(enlever_entite);
            
            titre = new JLabel() ;//On crée notre objet
            titre.setText("Liste Entité : ");
            titre.setBounds(113,20,80,25);
            choixEntite.add(titre);
            
           //on initialise le model de la Jlist list
            CollectionEntite c = col;
            for (int i=0;i<c.tab.length;i++)
            {
                if(c.tab[2][i]=="oui")//si elle est affiché
                {
                    Entite E = (Entite) c.tab[1][i];
    
                    l.add(i,E.Titre);
                }
                     
           }            
            
            
            list=new JList(l);//il faut mettre les entités affichées dedans
            list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            list.setBounds(10,50,265,435);
            choixEntite.add(list);
            
            titre=new JLabel();
            titre.setText("Nom de l'association :");
            titre.setBounds(10,20,130,25);
            association.add(titre);
            
            text=new JTextField(); 
            text.setText("Association");
            text.setBounds(140,20,135,21);
            association.add(text);
    
            titre=new JLabel();
            titre.setText("Entités ajoutées :");
            titre.setBounds(92,50,100,25);
            association.add(titre);
           
            
           
            
            list=new JList(l2);//il faut mettre les entités associé dedans
            list.setBounds(10,80,265,320);
            association.add(list);
            
            titre=new JLabel();
            titre.setText("Attribut :");
            titre.setBounds(123,415,70,25);
            association.add(titre);
            
            ajout_attribut=new JButton("Ajouter Attribut");
            ajout_attribut.setBounds(85,450,120,25);
            ajout_attribut.setForeground(Color.black);
            ajout_attribut.setBackground(Color.WHITE);
            ajout_attribut.addActionListener(this) ;
            association.add(ajout_attribut);
            
            
            
            
        }
    
        public void actionPerformed(ActionEvent e) {
            if(e.getSource()==non_ajout)
                this.dispose();
            
    // c'est ici que l'on doit deplacer l'entité selectionnée
    
            if (e.getSource()==ajout_entite)
            {
                Object o= list.getSelectedValue();  
                l.removeElement(o);
                l2.addElement(o);
            }
    
            
        }
        
    }

    Mais ce code ne fonctionne pas ... aucune exception n'est levée est rien ne bouge ... pourquoi ?
    .-*K.E.U.B*-.

  2. #2
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut
    personne ne sait ?
    .-*K.E.U.B*-.

  3. #3
    Membre chevronné
    Avatar de afrikha
    Profil pro
    Étudiant
    Inscrit en
    Août 2005
    Messages
    1 600
    Détails du profil
    Informations personnelles :
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2005
    Messages : 1 600
    Points : 2 208
    Points
    2 208
    Par défaut
    Bonjour,

    Personnellement, j'aurais crée un ListModel héritant de AbstractListModel dans lequel j'aurais défini les méthodes ajouter/supprimer comme suit :

    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
     
    public class MonModel extends AbstractListModel {
     
    private ArrayList donnees;
     
    // differentes méthodes à implémenter car déclarées dans AbstractListModel
     
    public void supprimerElement(int index){
           donnees.remove(index);
           this.fireContentsChanged(this,0,donnees.size()-1);
    }
     
    public void ajouterElement(Object o);
            donnees.add(o);
            this.fireContentsChanged(this,0,donnees.size()-1);
    }
    Voilà, j'espère que j'ai été clair. Si tu ne comprends pas un truc n'hésite pas à poser des questions

    @+


    Mes publications
    Lisez
    Les régles du forum
    Pensez au bouton

  4. #4
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut
    ok ok mais comment récupère ton l'index dun élément séctionné dans une JList ?

    la focntion getSelectedIndex ne semble pas focntionner car elle me renvoie toujours -1 pourquoi ?
    .-*K.E.U.B*-.

  5. #5
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut
    allo ?
    .-*K.E.U.B*-.

  6. #6
    Membre expert
    Avatar de Janitrix
    Inscrit en
    Octobre 2005
    Messages
    3 391
    Détails du profil
    Informations forums :
    Inscription : Octobre 2005
    Messages : 3 391
    Points : 3 401
    Points
    3 401
    Par défaut
    Citation Envoyé par keub51
    allo ?
    Ce genre de message ne sert a rien, il ne fait qu'énerver . Ne t'inquiète pas, si quelqu'un peut répondre et t'aider, il le fera avec plaisir, mais ça prend parfois du temps, alors sois patient . Je pense que afrikha pourra répondre à ta question, attend qu'il se connecte sur le site. Bon courage.

  7. #7
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut
    ouép c'était juste pour ne pas que mon message tomber dans les oubliettes de ce forum et qu'on pense que mon problème est résolu. Désolé
    .-*K.E.U.B*-.

  8. #8
    Membre chevronné
    Avatar de afrikha
    Profil pro
    Étudiant
    Inscrit en
    Août 2005
    Messages
    1 600
    Détails du profil
    Informations personnelles :
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2005
    Messages : 1 600
    Points : 2 208
    Points
    2 208
    Par défaut
    Citation Envoyé par keub51
    la focntion getSelectedIndex ne semble pas focntionner car elle me renvoie toujours -1 pourquoi ?
    La méthode getSelectedIndex() renvoie -1 si aucun élément de la JList n'est séléctionné (il suffit de lire la javadoc ). Donc : es-tu sùr qu'un élément est séléctionné lorsque t'appelles cette méthode ? Si oui , fais voir ton code .

    @+


    Mes publications
    Lisez
    Les régles du forum
    Pensez au bouton

  9. #9
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut
    j'ai construit la classe MonModel comme tu me l'a proposé. en voici le code :

    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
    /*
     * MonModel.java
     *
     * Created on 20 mars 2007, 22:57
     *
     * To change this template, choose Tools | Template Manager
     * and open the template in the editor.
     */
     
    package agl;
     
    import java.util.ArrayList;
    import javax.swing.AbstractListModel;
     
    /**
     *
     * @author keub
     */
    public class MonModel extends AbstractListModel {
     
    private ArrayList donnees;
     
    // differentes méthodes à implémenter car déclarées dans AbstractListModel
     
    public void supprimerElement(int index){
           donnees.remove(index);
           this.fireContentsChanged(this,0,donnees.size()-1);
    }
     
    public void ajouterElement(Object o){
            donnees.add(o);
            this.fireContentsChanged(this,0,donnees.size()-1);
    }
     
        public int getSize() {
            if (donnees!=null)
                return donnees.size();
            else return 0;
        }
     
        public Object getElementAt(int index) {
            return donnees.get(index);
        }
    }
    et voici ma classe windowaddasso modifié en conséquence :

    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
    /*
     * WindowAddAssociation.java
     *
     * Created on 19 mars 2007, 16:25
     *
     * To change this template, choose Tools | Template Manager
     * and open the template in the editor.
     */
     
    package agl;
     
    import java.awt.BorderLayout;
    import java.awt.Choice;
    import java.awt.Color;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Rectangle;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.sql.SQLException;
    import java.util.Vector;
    import javax.swing.DefaultListModel;
    import javax.swing.JButton;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JTable;
    import javax.swing.JTextArea;
    import javax.swing.JTextField;
    import javax.swing.ListSelectionModel;
    import javax.swing.border.EtchedBorder;
    import javax.swing.border.TitledBorder;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    /**
     *
     * @author Anthony
     */
    public class WindowAddAssociation extends JFrame implements ActionListener{
        private Agl a = null;
        private JPanel conteneur=null;
        private JPanel choixEntite=null;
        private JPanel association=null;
        private JPanel barre=null;
        private JPanel milieu=null;
        private JButton ok_ajout;
        private JButton non_ajout;
        private JButton enlever_entite;
        private JButton ajout_entite;
        private JButton ajout_attribut;
        private JLabel titre;
        private JTextField text;
        private JList list;
     
        MonModel l = new MonModel();
        MonModel l2 = new MonModel();
        /** Creates a new instance of WindowAddAssociation */
        public WindowAddAssociation(Agl a,CollectionEntite col) throws SQLException {
            this.a=a;
            conteneur=new JPanel();
            this.setContentPane(conteneur);
            this.setTitle("AGL-Ajout d'une Association");
            conteneur.setLayout(null);
            this.setSize(700,600);
            this.setLocationRelativeTo(null);
            this.setResizable(false);
     
     
            choixEntite=new JPanel();
            choixEntite.setLayout(null);
            choixEntite.setBorder(new TitledBorder("Choix Entité"));
            choixEntite.setBounds(5,5,285,495);
            conteneur.add(choixEntite);
     
            association=new JPanel();
            association.setLayout(null);
            association.setBorder(new TitledBorder("Association"));
            association.setBounds(405,5,285,495);
            conteneur.add(association);
     
            barre=new JPanel();
            barre.setLayout(null);
            barre.setBounds(5,500,685,65);
            conteneur.add(barre);
     
            milieu=new JPanel();
            milieu.setLayout(null);
            milieu.setBounds(290,5,120,495);
            conteneur.add(milieu);
     
            this.setVisible(true);
     
     
            ok_ajout=new JButton("ok");
            ok_ajout.setBounds(150,20,100,25);
            ok_ajout.setForeground(Color.black);
            ok_ajout.setBackground(Color.WHITE);
            ok_ajout.addActionListener(this) ;
            barre.add(ok_ajout);
     
            non_ajout=new JButton("annuler");
            non_ajout.setBounds(450,20,100,25);
            non_ajout.setForeground(Color.black);
            non_ajout.setBackground(Color.WHITE);
            non_ajout.addActionListener(this) ;
            barre.add(non_ajout);
     
            ajout_entite=new JButton(">>");
            ajout_entite.setBounds(10,140,100,25);
            ajout_entite.setForeground(Color.black);
            ajout_entite.setBackground(Color.WHITE);
            ajout_entite.addActionListener(this) ;
            milieu.add(ajout_entite);
     
            enlever_entite=new JButton("<<");
            enlever_entite.setBounds(10,340,100,25);
            enlever_entite.setForeground(Color.black);
            enlever_entite.setBackground(Color.WHITE);
            enlever_entite.addActionListener(this) ;
            milieu.add(enlever_entite);
     
            titre = new JLabel() ;//On crée notre objet
            titre.setText("Liste Entité : ");
            titre.setBounds(113,20,80,25);
            choixEntite.add(titre);
     
     
            CollectionEntite c = col;
            for (int i=0;i<c.tab.length;i++)
            {
                if(c.tab[2][i]=="oui")//si elle est affiché
                {
                    Entite E = (Entite) c.tab[1][i];
     
                    l.ajouterElement(E.Titre);
                }
     
           }            
     
     
            list=new JList(l);//il faut mettre les entités affichées dedans
            list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            list.setBounds(10,50,265,435);
            choixEntite.add(list);
     
            titre=new JLabel();
            titre.setText("Nom de l'association :");
            titre.setBounds(10,20,130,25);
            association.add(titre);
     
            text=new JTextField(); 
            text.setText("Association");
            text.setBounds(140,20,135,21);
            association.add(text);
     
            titre=new JLabel();
            titre.setText("Entités ajoutées :");
            titre.setBounds(92,50,100,25);
            association.add(titre);
     
     
     
     
            list=new JList(l2);//il faut mettre les entités associé dedans
            list.setBounds(10,80,265,320);
            association.add(list);
     
            titre=new JLabel();
            titre.setText("Attribut :");
            titre.setBounds(123,415,70,25);
            association.add(titre);
     
            ajout_attribut=new JButton("Ajouter Attribut");
            ajout_attribut.setBounds(85,450,120,25);
            ajout_attribut.setForeground(Color.black);
            ajout_attribut.setBackground(Color.WHITE);
            ajout_attribut.addActionListener(this) ;
            association.add(ajout_attribut);
     
     
     
     
        }
     
        public void actionPerformed(ActionEvent e) {
            if(e.getSource()==non_ajout)
                this.dispose();
     
            if (e.getSource()==ajout_entite)
            {
                int index= list.getSelectedIndex(); 
                Object o = l.getElementAt(index);
                l.supprimerElement(index);            
                l2.ajouterElement(o);
            }
     
     
        }
     
    }
    Maintenant il me fait une erreur en me disant que l'objet que je tente d'inserer est null.

    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at agl.MonModel.ajouterElement(MonModel.java:31)
    at agl.WindowAddAssociation.<init>(WindowAddAssociation.java:138)


    pourquoi ?
    .-*K.E.U.B*-.

  10. #10
    Membre chevronné
    Avatar de afrikha
    Profil pro
    Étudiant
    Inscrit en
    Août 2005
    Messages
    1 600
    Détails du profil
    Informations personnelles :
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Août 2005
    Messages : 1 600
    Points : 2 208
    Points
    2 208
    Par défaut
    Bonjour,

    Tu obtiens un NullPointerException car l'objet donnees n'est pas initialisé.

    Essaye de mettre dans le modèle :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    private ArrayList donnees=new ArrayList();
    @+


    Mes publications
    Lisez
    Les régles du forum
    Pensez au bouton

  11. #11
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut
    Maintenant j'ai l'erreur suivante :

    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: -1
    Mon index vaut toujours -1 quelque soit l'element selectionné...

    pourtant je fais bien :

    int index= list.getSelectedIndex();
    Cette méthode doit bien retourné l'index de l'élément selectionné dans la list...

    j'ai meme modifier la fonction suivante dans MonModel :

    public void ajouterElement(Object o){
    System.out.println(getSize());
    donnees.add(getSize(),o);
    this.fireContentsChanged(this,0,donnees.size()-1);
    }
    En regardant bien s'il inserer les element au bon endroit avec le bon index grace à System.out.println(getSize()); mais ca ne marche toujours pas !!!!
    .-*K.E.U.B*-.

  12. #12
    Membre régulier Avatar de keub51
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    349
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 349
    Points : 116
    Points
    116
    Par défaut
    j'aimerai avoir une réponse ... sniff" c'est important lol plz help me !
    .-*K.E.U.B*-.

Discussions similaires

  1. [JList] ajouter un élément
    Par amazircool dans le forum Composants
    Réponses: 8
    Dernier message: 25/01/2008, 15h38
  2. JList Ajouter / Supprimer
    Par keub51 dans le forum Composants
    Réponses: 4
    Dernier message: 07/03/2007, 12h25
  3. [jlist] ajouter un element ?
    Par daed dans le forum Composants
    Réponses: 1
    Dernier message: 01/11/2006, 17h35
  4. [JList]Ajout de composant String/Objet
    Par HNT dans le forum Composants
    Réponses: 7
    Dernier message: 19/01/2006, 12h24
  5. [JList] Ajout d'élément
    Par clairette dans le forum Composants
    Réponses: 13
    Dernier message: 16/06/2005, 15h53

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