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

Java Discussion :

semi projet en Java , aide


Sujet :

Java

  1. #1
    Nouveau membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2015
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : Koweït

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 5
    Par défaut semi projet en Java , aide
    Dans un établissement, nous avons 60 étudiants qui passent l’examen dans quatre modules
    (donc 4 notes pour chaque étudiant).
    1. réalisez le design comme illustré dans la figure ci-dessous ;
    2. chaque fois, on fait entrer les notes d’un étudiant dans le textArea comme suit :14 ;12 ;15 ;11
    et on clique sur enregistrer pour les sauvegarder dans un tableau.
    3. en cliquant sur le label Moyennes, le programme doit afficher la moyenne de chaque
    étudiant (pour les 5 premiers étudiants). En cliquant ensuite sur Moyennes, le programme
    affichera la moyenne des 5 étudiants qui suivent, et ainsi de suite ...
    4. en cliquant sur le bouton Trier, le programme affichera les moyennes dans un ordre
    croissant.
    Images attachées Images attachées  

  2. #2
    Modérateur
    Avatar de wax78
    Homme Profil pro
    R&D - Palefrenier programmeur
    Inscrit en
    Août 2006
    Messages
    4 097
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 44
    Localisation : Belgique

    Informations professionnelles :
    Activité : R&D - Palefrenier programmeur
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Août 2006
    Messages : 4 097
    Par défaut
    Ok, c'est un bon énoncé...

    Et la question est ?
    (Les "ça ne marche pas", même écrits sans faute(s), vous porteront discrédit ad vitam æternam et malheur pendant 7 ans)

    N'oubliez pas de consulter les FAQ Java et les cours et tutoriels Java

  3. #3
    Nouveau membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2015
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : Koweït

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 5
    Par défaut la questionest
    de programmer tous ce qui est ecrit en java

  4. #4
    Membre émérite Avatar de Cincinnatus
    Homme Profil pro
    Développeur d'applications métier
    Inscrit en
    Mars 2007
    Messages
    593
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Nord (Nord Pas de Calais)

    Informations professionnelles :
    Activité : Développeur d'applications métier
    Secteur : Service public

    Informations forums :
    Inscription : Mars 2007
    Messages : 593
    Par défaut
    Citation Envoyé par moumengaming Voir le message
    de programmer tous ce qui est ecrit en java
    ça, ce n'est pas une question, c'est le travail demandé par le prof.

  5. #5
    Nouveau membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2015
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : Koweït

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 5
    Par défaut oui evidement , et je veux qlq1 pour m'aider
    oui c bien evidemment ça , alors je veux qlq1 pour m'aider , j'ai commencer ms je me suis arreter quans l'utilisateur va cliquer une deuxieme fois sur label moyenne , pour que le programme lui affiche les 5 moyenne suivantes ...

  6. #6
    Nouveau membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2015
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : Koweït

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 5
    Par défaut voilà les problemes Trouver
    Bonsoir ,
    Alors j'ai crié l'interface sans aucun problème.

    puis je me suis dirigé vers le button " ENREGISTRER " et j'ai coder les truc suivante .

    1. j'ai déclarer un tableau en dehors de tout les classe afin qu'il soit accessible par tout les classes .
    2. j'ai déclarer un variable nommée note qui va récupérer le contenue de mon textfiel .
    3. après j'ai fus l'enregistrement de la variable dans le tableau en utilisant splite pour indiquer le séparateur.
    4. j'ai convertis les variable en int .

    je me suis redirigé vers label :

    j'ai fus un mousevent , puis j'ai essayer de calculer la moyenne des 4 premier entier dans le tableau et l'afficher .

    et OPPPPP là je suis coincer
    1. comment je vais afficher 5 moyenne dans les cinque textfield.
    2. comment faire pour que dans le deuxieme clique les valeur change .

    Nom : 1.png
Affichages : 234
Taille : 40,7 Ko
    Nom : 2.png
Affichages : 245
Taille : 67,1 Ko



    Merci infiniment pour votre aide.

  7. #7
    Nouveau membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2015
    Messages
    5
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 30
    Localisation : Koweït

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Matériel informatique

    Informations forums :
    Inscription : Mai 2015
    Messages : 5
    Par défaut resolue
    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
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    import java.util.ArrayList;
    import java.util.Collections;
     
    /*
     * To change this license header, choose License Headers in Project Properties.
     * To change this template file, choose Tools | Templates
     * and open the template in the editor.
     */
     
    /**
     *
     * @author Minfo
     */
    public class gestionetudiant extends javax.swing.JFrame {
     
            ArrayList mmm = new ArrayList();
          public  ArrayList<Integer> mm = new ArrayList<Integer>();
     
                public  ArrayList<Integer> mmtrier = new ArrayList<Integer>();
     
          ArrayList<Integer> notess  = new ArrayList<Integer>();;
            ArrayList <Integer> c = new ArrayList();
     
            String s = "";
             int compte =0;
             int st = 0;
             int sttrier = 0;
        public gestionetudiant() {
            initComponents();
     
        }
     
        /**
         * This method is called from within the constructor to initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is always
         * regenerated by the Form Editor.
         */
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">                          
        private void initComponents() {
     
            notessaisie = new java.awt.TextField();
            enregistrer = new java.awt.Button();
            note1 = new java.awt.TextField();
            note3 = new java.awt.TextField();
            note2 = new java.awt.TextField();
            note4 = new java.awt.TextField();
            note5 = new java.awt.TextField();
            note6 = new java.awt.TextField();
            note7 = new java.awt.TextField();
            note8 = new java.awt.TextField();
            note9 = new java.awt.TextField();
            note10 = new java.awt.TextField();
            trie = new java.awt.Button();
            button1 = new java.awt.Button();
            notes = new javax.swing.JLabel();
            moyennes = new javax.swing.JLabel();
            moyennestrie = new javax.swing.JLabel();
     
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Gestion Des Etudiants");
            setResizable(false);
     
            notessaisie.setName(""); // NOI18N
            notessaisie.setText("x;x;x;x");
            notessaisie.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    notessaisieMouseClicked(evt);
                }
            });
            notessaisie.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    notessaisieActionPerformed(evt);
                }
            });
     
            enregistrer.setBackground(new java.awt.Color(204, 204, 255));
            enregistrer.setLabel("enregistrer");
            enregistrer.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    enregistrerActionPerformed(evt);
                }
            });
     
            note1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    note1ActionPerformed(evt);
                }
            });
     
            note6.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    note6ActionPerformed(evt);
                }
            });
     
            trie.setBackground(new java.awt.Color(204, 204, 255));
            trie.setLabel("triee");
            trie.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    trieActionPerformed(evt);
                }
            });
     
            button1.setBackground(new java.awt.Color(204, 204, 255));
            button1.setLabel("Quitter");
            button1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    button1ActionPerformed(evt);
                }
            });
     
            notes.setText("Notes :");
     
            moyennes.setText("Moyennes : ");
            moyennes.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    moyennesMouseClicked(evt);
                }
            });
            moyennes.addAncestorListener(new javax.swing.event.AncestorListener() {
                public void ancestorMoved(javax.swing.event.AncestorEvent evt) {
                }
                public void ancestorAdded(javax.swing.event.AncestorEvent evt) {
                    moyennesAncestorAdded(evt);
                }
                public void ancestorRemoved(javax.swing.event.AncestorEvent evt) {
                }
            });
     
            moyennestrie.setText("Moyennes Trie: ");
     
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addGroup(layout.createSequentialGroup()
                                    .addGap(29, 29, 29)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(note5, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE)
                                        .addComponent(note1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(note4, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE)
                                        .addComponent(note3, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE)
                                        .addComponent(note2, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE))
                                    .addGap(92, 92, 92))
                                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                    .addContainerGap()
                                    .addComponent(moyennes, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(40, 40, 40)))
                            .addComponent(trie, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createSequentialGroup()
                            .addContainerGap()
                            .addComponent(notes, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addGap(25, 25, 25)
                            .addComponent(notessaisie, javax.swing.GroupLayout.PREFERRED_SIZE, 420, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addGap(33, 33, 33)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(note10, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(note6, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(note9, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(note8, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(note7, javax.swing.GroupLayout.PREFERRED_SIZE, 133, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(enregistrer, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addContainerGap(40, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(moyennestrie, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addGap(0, 0, Short.MAX_VALUE)
                    .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 168, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(265, 265, 265))
            );
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(14, 14, 14)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(notessaisie, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(enregistrer, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(notes, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGap(35, 35, 35)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(trie, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(moyennes, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(moyennestrie, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(65, 65, 65)
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(note1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(24, 24, 24)
                                    .addComponent(note2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(20, 20, 20)
                                    .addComponent(note3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(21, 21, 21)
                                    .addComponent(note4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(26, 26, 26)
                                    .addComponent(note5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(layout.createSequentialGroup()
                                    .addComponent(note6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(24, 24, 24)
                                    .addComponent(note7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(20, 20, 20)
                                    .addComponent(note8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(21, 21, 21)
                                    .addComponent(note9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGap(26, 26, 26)
                                    .addComponent(note10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(button1, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(29, 29, 29))
            );
     
            pack();
        }// </editor-fold>                        
     
        private void note1ActionPerformed(java.awt.event.ActionEvent evt) {                                      
            // TODO add your handling code here:
        }                                     
     
        private void note6ActionPerformed(java.awt.event.ActionEvent evt) {                                      
            // TODO add your handling code here:
        }                                     
     
        private void enregistrerActionPerformed(java.awt.event.ActionEvent evt) {                                            
     
     
                  s=notessaisie.getText();
                  notessaisie.setText("");
                 for(int i = 0;i<s.length();i++){
     
                     if(s.charAt(i)== ';') {
                         compte++;
                         c.add(i);
                        // System.out.print(i+" ");
                     }
                 }
                 if(compte==3){
     
                    if(notess.size()<= 60){
                     notess.add(Integer.parseInt(s.substring(0,c.get(0))));
                         //      System.out.print("1 "+s.substring(0,c.get(0))+" ");
     
                     notess.add(Integer.parseInt(s.substring(c.get(0)+1,c.get(1))));
                           //     System.out.print("2 "+s.substring(c.get(0)+1,c.get(1))+" ");
     
                     notess.add(Integer.parseInt(s.substring(c.get(1)+1,c.get(2))));
                             //  System.out.print("3 "+s.substring(c.get(1)+1,c.get(2))+" ");
     
                     notess.add(Integer.parseInt(s.substring(c.get(2)+1,s.length())));
     
                             // System.out.print("4 "+s.substring(c.get(2)+1,s.length())+" ");
     
                     mm.add((notess.get(0)+ notess.get(1) + notess.get(2) +notess.get(3))/4) ;
                 }
                 }
     
     
     
     
     
                 compte=0;
                 mmtrier = mm; 
                 notess.removeAll(notess);
     
                c.removeAll(c);
     
     
     
     
     
     
        }                                           
     
        private void button1ActionPerformed(java.awt.event.ActionEvent evt) {                                        
            System.exit(0);
        }                                       
     
        private void trieActionPerformed(java.awt.event.ActionEvent evt) {                                     
            // TODO add your handling code here:
            Collections.sort(mmtrier);
             note6.setText(String.valueOf(this.mmtrier.get(sttrier++)));
             note7.setText(String.valueOf(this.mmtrier.get(sttrier++)));
             note8.setText(String.valueOf(this.mmtrier.get(sttrier++)));
             note9.setText(String.valueOf(this.mmtrier.get(sttrier++)));
             note10.setText(String.valueOf(this.mmtrier.get(sttrier++)));
     
     
        }                                    
     
        private void moyennesAncestorAdded(javax.swing.event.AncestorEvent evt) {                                       
     
        }                                      
     
        private void moyennesMouseClicked(java.awt.event.MouseEvent evt) {                                      
       /*     System.out.print(mm.get(0)+" ");
                             System.out.print(mm.get(1)+" ");
     
                     System.out.print(mm.get(2)+" ");
                     System.out.print(mm.get(3)+" ");
                     System.out.print(mm.get(4)+" ");
                     */
             note1.setText(String.valueOf(this.mm.get(st++)));
             note2.setText(String.valueOf(this.mm.get(st++)));
             note3.setText(String.valueOf(this.mm.get(st++)));
             note4.setText(String.valueOf(this.mm.get(st++)));
             note5.setText(String.valueOf(this.mm.get(st++)));
     
     
        }                                     
     
        private void notessaisieMouseClicked(java.awt.event.MouseEvent evt) {                                         
        }                                        
     
        private void notessaisieActionPerformed(java.awt.event.ActionEvent evt) {                                            
            // TODO add your handling code here:
        }                                           
     
        /**
         * @param args the command line arguments
         */
        public static void main(String args[]) {
            /* Set the Nimbus look and feel */
            //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
            /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
             * For details see <a href="http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html" target="_blank">http://download.oracle.com/javase/tu...feel/plaf.html</a> 
             */
            try {
                for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                    if ("Nimbus".equals(info.getName())) {
                        javax.swing.UIManager.setLookAndFeel(info.getClassName());
                        break;
                    }
                }
            } catch (ClassNotFoundException ex) {
                java.util.logging.Logger.getLogger(gestionetudiant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (InstantiationException ex) {
                java.util.logging.Logger.getLogger(gestionetudiant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (IllegalAccessException ex) {
                java.util.logging.Logger.getLogger(gestionetudiant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            } catch (javax.swing.UnsupportedLookAndFeelException ex) {
                java.util.logging.Logger.getLogger(gestionetudiant.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
            }
            //</editor-fold>
     
            /* Create and display the form */
            java.awt.EventQueue.invokeLater(new Rummable() {
                public void run() {
                    new gestionetudiant().setVisible(true);
                }
            });
        }
     
        // Variables declaration - do not modify                     
        private java.awt.Button button1;
        private java.awt.Button enregistrer;
        private javax.swing.JLabel moyennes;
        private javax.swing.JLabel moyennestrie;
        private java.awt.TextField note1;
        private java.awt.TextField note10;
        private java.awt.TextField note2;
        private java.awt.TextField note3;
        private java.awt.TextField note4;
        private java.awt.TextField note5;
        private java.awt.TextField note6;
        private java.awt.TextField note7;
        private java.awt.TextField note8;
        private java.awt.TextField note9;
        private javax.swing.JLabel notes;
        private java.awt.TextField notessaisie;
        private java.awt.Button trie;
        // End of variables declaration                   
    }

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

Discussions similaires

  1. Projet en Java/J2EE dans la finance
    Par speedster dans le forum Etudes
    Réponses: 11
    Dernier message: 16/12/2005, 23h01

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