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 :

Erreur au lancement de programme: java.lang.ClassCastException


Sujet :

Java

  1. #1
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut Erreur au lancement de programme: java.lang.ClassCastException
    Bonjour à tous!



    Voilà l'erreur que j'ai en lançant mon programme:


    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
    at javax.swing.LayoutComparator.compare(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source)
    at java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source)
    at java.awt.Window.getMostRecentFocusOwner(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.SequencedEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
    at javax.swing.LayoutComparator.compare(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source)
    at java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source)
    at java.awt.Window.getMostRecentFocusOwner(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.SequencedEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
    at javax.swing.LayoutComparator.compare(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source)
    at java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source)
    at java.awt.Window.getMostRecentFocusOwner(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.SequencedEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
    at javax.swing.LayoutComparator.compare(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source)
    at java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source)
    at java.awt.Window.getMostRecentFocusOwner(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.SequencedEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException
    at javax.swing.LayoutComparator.compare(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.mergeSort(Unknown Source)
    at java.util.Arrays.sort(Unknown Source)
    at java.util.Collections.sort(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.LayoutFocusTraversalPolicy.getFirstComponent(Unknown Source)
    at javax.swing.SortingFocusTraversalPolicy.getDefaultComponent(Unknown Source)
    at java.awt.FocusTraversalPolicy.getInitialComponent(Unknown Source)
    at java.awt.Window.getMostRecentFocusOwner(Unknown Source)
    at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.SequencedEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)




    Que faire ? Si je ne résouds pas cette erreur je ne peux pas aller plus loin, mon programme tourne mais mal.

    Auriez-vous des pistes ?

  2. #2
    Membre confirmé
    Femme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Octobre 2010
    Messages
    158
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Âge : 38
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Produits et services télécom et Internet

    Informations forums :
    Inscription : Octobre 2010
    Messages : 158
    Points : 556
    Points
    556
    Par défaut
    Eh bien, tu as une ClassCastException, probablement due au fait que tu essaie de comparer des objets de types différents.
    Sans code, ça va être difficile d'en dire plus.

  3. #3
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut
    Merci,

    oui je n'ai pas posté mon code car je voudrais pas diffuser tout mon projet, c'est pour une entreprise.

    Mais je peux vous l'envoyer par mail si vous voulez, le problème c'est qu'en message privé je peux pas joindre de fichiers....

  4. #4
    Modérateur

    Avatar de Robin56
    Homme Profil pro
    Architecte de système d'information
    Inscrit en
    Juin 2009
    Messages
    5 297
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Architecte de système d'information

    Informations forums :
    Inscription : Juin 2009
    Messages : 5 297
    Points : 13 670
    Points
    13 670
    Par défaut
    Citation Envoyé par wilfryjules Voir le message
    Merci,

    oui je n'ai pas posté mon code car je voudrais pas diffuser tout mon projet, c'est pour une entreprise.

    Mais je peux vous l'envoyer par mail si vous voulez, le problème c'est qu'en message privé je peux pas joindre de fichiers....
    Ou alors tu peux joindre juste la portion de code incriminée en maquillant les choses que tu ne veux pas montrer.

  5. #5
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut
    Mon projet est trop gros pour le joindre sur le forum
    et je doute que ne joindre que quelques pieces ne suffise pour comprendre..
    mais si vous me donnez votre mail par message privé je vous le joint..

    merci!

  6. #6
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut



    Il n'y a personne à qui je pourrais joindre mon projet? Pour qu'il y jette un oeil?

    Dès le lancement, il y a des CastExceptions, et j'ai 20 000 fenêtres écrasées qui s'ouvrent....

    Voici mon mail:

    praline40@hotmail.fr


  7. #7
    Modérateur

    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    12 559
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 12 559
    Points : 21 619
    Points
    21 619
    Par défaut
    Ta seule solution, c'est d'enlever tout ce que tu peux, jusqu'à ce que ton code ne contienne plus rien, à part ce qui fait cette erreur.

    Et si à partir de là tu ne vois toujours pas le problème, le petit bout de code restant, tu pourras très bien le poster ici, non ?

  8. #8
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut
    Au démarrage normalement ça envoie le Run, qui appelle le start du constroller....


    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 Run 
    {  
     
        /**  
         * @param args  
         */ 
     
        public static void main(String[] args) 
        {  
            // TODO Auto-generated method stub  
           Controller controller = new Controller();   // ON INSTANCIE TOUTES LES CLASSES
        }  
     
    }

    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
     
     
     
    public class Controller 
    {  
     
       //AGREGATION
       private ViewAccueil viewAccueil;
       private ViewTissusOuvertRoute viewTissusOuvertRoute; 
       private ViewTissusUrbainRoute viewTissusUrbainRoute;
       private ViewAeroport viewAeroport;
       private ViewElementsFace viewElementsFace;
       private ViewElementsFaceLat1 viewElementsFaceLat1;
       private ViewElementsFaceLat2 viewElementsFaceLat2;
       private ViewElementsLat1 viewElementsLat1;
       private ViewElementsLat2 viewElementsLat2;
       private ViewElementsArr viewElementsArr;
       private ViewElementsArrLat1 viewElementsArrLat1;
       private ViewElementsArrLat2 viewElementsArrLat2;
       private ViewDossierTor viewDossierTor;
       private ViewDossierTur viewDossierTur;
       private ViewDossierAe viewDossierAe;
       private ViewInfoTor viewInfoTor;
       private ViewInfoTur viewInfoTur;
       private ViewInfoAe viewInfoAe;
       private MPanelPrinter mPanelPrinter;
       private Model model;  
       private int result;
       private int flag_RetourViewElements, flag_GoToElements=0, flag_position, flag_situation=0;
     
     
     
     
     
       public Controller()  
       {  
    	    start();
       }  
     
     
     
       /** ON INSTANCIE TOUTES LES CLASSES **/
       public void start()  
       {  
    	model = new Model();  
    	viewAccueil = new ViewAccueil(this); 
            viewAccueil.setVisible(true); 
            viewTissusOuvertRoute = new ViewTissusOuvertRoute(this);
            viewTissusOuvertRoute.setVisible(false);
            viewTissusUrbainRoute = new ViewTissusUrbainRoute(this);
            viewTissusUrbainRoute.setVisible(false);
         	viewDossierTor = new ViewDossierTor(this);
         	viewDossierTor.setVisible(false);
        	viewDossierTur = new ViewDossierTur(this);
         	viewDossierTur.setVisible(false);
         	viewDossierAe = new ViewDossierAe(this);
         	viewDossierAe.setVisible(false);
         	viewAeroport = new ViewAeroport(this);
         	viewAeroport.setVisible(false);
         	viewElementsFace = new ViewElementsFace(this);
         	viewElementsFace .setVisible(false);
         	viewElementsLat1 = new ViewElementsLat1(this);
         	viewElementsLat1.setVisible(false);
         	viewElementsLat2 = new ViewElementsLat2(this);
         	viewElementsLat2.setVisible(false);
         	viewElementsFaceLat1 = new ViewElementsFaceLat1(this);
         	viewElementsFaceLat1.setVisible(false);
         	viewElementsFaceLat2 = new ViewElementsFaceLat2(this);
         	viewElementsFaceLat2.setVisible(false);
         	viewElementsArr = new ViewElementsArr(this);
         	viewElementsArr.setVisible(false);
         	viewElementsArrLat1 = new ViewElementsArrLat1(this);
         	viewElementsArrLat1.setVisible(false);
         	viewElementsArrLat2 = new ViewElementsArrLat2(this);
         	viewElementsArrLat2.setVisible(false);
         	viewInfoTor = new ViewInfoTor(this);
         	viewInfoTor.setVisible(false);
         	viewInfoTur = new ViewInfoTur(this);
         	viewInfoTur.setVisible(false);
         	viewInfoAe = new ViewInfoAe(this);
         	viewInfoAe.setVisible(false);
     
       }

  9. #9
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut
    J'ai procédé par élimination comme vous m'avez conseillé.

    J'ai donc déjà un problème de Native Method dans la classe ViewTissusOuvertRoute que voici :



    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
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    1248
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
    1289
    1290
    1291
    1292
    1293
    1294
    1295
    1296
    1297
    1298
    1299
    1300
    1301
    1302
    1303
    1304
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
    1329
    1330
    1331
    1332
    1333
    1334
    1335
    1336
    1337
    1338
    1339
    1340
    1341
    1342
    1343
    1344
    1345
    1346
    1347
    1348
    1349
    1350
    1351
    1352
    1353
    1354
    1355
    1356
    1357
    1358
    1359
    1360
    1361
    1362
    1363
    1364
    1365
    1366
    1367
    1368
    1369
    1370
    1371
    1372
    1373
    1374
    1375
    1376
    1377
    1378
    1379
    1380
    1381
    1382
    1383
    1384
    1385
    1386
    1387
    1388
    1389
    1390
    1391
    1392
    1393
    1394
    1395
    1396
    1397
    1398
    1399
    1400
    1401
    1402
    1403
    1404
    1405
    1406
    1407
    1408
    1409
    1410
    1411
    1412
    1413
    1414
    1415
    1416
    1417
    1418
    1419
    1420
    1421
    1422
    1423
    1424
    1425
    1426
    1427
    1428
    1429
    1430
    1431
    1432
    1433
    1434
    1435
    1436
    1437
    1438
    1439
    1440
    1441
    1442
    1443
    1444
    1445
    1446
    1447
    1448
    1449
    1450
    1451
    1452
    1453
    1454
    1455
    1456
    1457
    1458
    1459
    1460
    1461
    1462
    1463
    1464
    1465
    1466
    1467
    1468
    1469
    1470
    1471
    1472
    1473
    1474
    1475
    1476
    1477
    1478
    1479
    1480
    1481
    1482
    1483
    1484
    1485
    1486
    1487
    1488
    1489
    1490
    1491
    1492
    1493
    1494
    1495
    1496
    1497
    1498
    1499
    1500
    1501
    1502
    1503
    1504
    1505
    1506
    1507
    1508
    1509
    1510
    1511
    1512
    1513
    1514
    1515
    1516
    1517
    1518
    1519
    1520
    1521
    1522
    1523
    1524
    1525
    1526
    1527
    1528
    1529
    1530
    1531
    1532
    1533
    1534
    1535
    1536
    1537
    1538
    1539
    1540
    1541
    1542
    1543
    1544
    1545
    1546
    1547
    1548
    1549
    1550
    1551
    1552
    1553
    1554
    1555
    1556
    1557
    1558
    1559
    1560
    1561
    1562
    1563
    1564
    1565
    1566
    1567
    1568
    1569
    1570
    1571
    1572
    1573
    1574
    1575
    1576
    1577
    1578
    1579
    1580
    1581
    1582
    1583
    1584
    1585
    1586
    1587
    1588
    1589
    1590
    1591
    1592
    1593
    1594
    1595
    1596
    1597
    1598
    1599
    1600
    1601
    1602
    1603
    1604
    1605
    1606
    1607
    1608
    1609
    1610
    1611
    1612
    1613
    1614
    1615
    1616
    1617
    1618
    1619
    1620
    1621
    1622
    1623
    1624
    1625
    1626
    1627
    1628
    1629
    1630
    1631
    1632
    1633
    1634
    1635
    1636
    1637
    1638
    1639
    1640
    1641
    1642
    1643
    1644
    1645
    1646
    1647
    1648
    1649
    1650
    1651
    1652
    1653
    1654
    1655
    1656
    1657
    1658
    1659
    1660
    1661
    1662
    1663
    1664
    1665
    1666
    1667
    1668
    1669
    1670
    1671
    1672
    1673
    1674
    1675
    1676
    1677
    1678
    1679
    1680
    1681
    1682
    1683
    1684
    1685
    1686
    1687
    1688
    1689
    1690
    1691
    1692
    1693
    1694
    1695
    1696
    1697
    1698
    1699
    1700
    1701
    1702
    1703
    1704
    1705
    1706
    1707
    1708
    1709
    1710
    1711
    1712
    1713
    1714
    1715
    1716
    1717
    1718
    1719
    1720
    1721
    1722
    1723
    1724
    1725
    1726
    1727
    1728
    1729
    1730
    1731
    1732
    1733
    1734
    1735
    1736
    1737
    1738
    1739
    1740
    1741
    1742
    1743
    1744
    1745
    1746
    1747
    1748
    1749
    1750
    1751
    1752
    1753
    1754
    1755
    1756
    1757
    1758
    1759
    1760
    1761
    1762
    1763
    1764
    1765
    1766
    1767
    1768
    1769
    1770
    1771
    1772
    1773
    1774
    1775
    1776
    1777
    1778
    1779
    1780
    1781
    1782
    1783
    1784
    1785
    1786
    1787
    1788
    1789
    1790
    1791
    1792
    1793
    1794
    1795
    1796
    1797
    1798
    1799
    1800
    1801
    1802
    1803
    1804
    1805
    1806
    1807
    1808
    1809
    1810
    1811
    1812
    1813
    1814
    1815
    1816
    1817
    1818
    1819
    1820
    1821
    1822
    1823
    1824
    1825
    1826
    1827
    1828
    1829
    1830
    1831
    1832
    1833
    1834
    1835
    1836
    1837
    1838
    1839
    1840
    1841
    1842
    1843
    1844
    1845
    1846
    1847
    1848
    1849
    1850
    1851
    1852
    1853
    1854
    1855
    1856
    1857
    1858
    1859
    1860
    1861
    1862
    1863
    1864
    1865
    1866
    1867
    1868
    1869
    1870
    1871
    1872
    1873
    1874
    1875
    1876
    1877
    1878
    1879
    1880
    1881
    1882
    1883
    1884
    1885
    1886
    1887
    1888
    1889
    1890
    1891
    1892
    1893
    1894
    1895
    1896
    1897
    1898
    1899
    1900
    1901
    1902
    1903
    1904
    1905
    1906
    1907
    1908
    1909
    1910
    1911
    1912
    1913
    1914
    1915
    1916
    1917
    1918
    1919
    1920
    1921
    1922
    1923
    1924
    1925
    1926
    1927
    1928
    1929
    1930
    1931
    1932
    1933
    1934
    1935
    1936
    1937
    1938
    1939
    1940
    1941
    1942
    1943
    1944
     
     
     
     
    public class ViewTissusOuvertRoute extends JFrame
    {
     
    	private Container contenu; // contenu es une interface graphique
    	private Container contenu4;
    	private Container contenu3;
    	private Container contenu2;
    	private Container contenu1;
    	private JMenuBar menuBar = new JMenuBar();
    	private JMenu test1 = new JMenu("Fichier");
    	private JMenu test2 = new JMenu("Edition");
    	private JMenu test3 = new JMenu("A propos");
    	private JMenuItem quitter = new JMenuItem("Quitter Acsonika");
    	private JMenuItem aPropos = new JMenuItem("?"); 
    	private Frame1 frame1;
    	private Frame2 frame2;
    	private Frame3 frame3;
    	private Frame4 frame4;
    	public ConfigTor configTor;
    	private JTextField jtf_orr1;
    	private JTextField jtf_orr2;
    	private JTextField jtf_orr3;
    	private JTextField jtf_orr4;
    	private JTextField jtf_orr5;
    	private JTextField jtf_orr6;
    	private JTextField jtf_orr7;
    	private JTextField jtf_orr8;
    	// boolean dejafait=false;
     
     
    	// Corrections à apporter sur chaque face en fonction de la route 1 uniquement:
    	private int att11b=0; // route1-> façade 1 (brute)
    	private int att11=0; // route1 -> façade 1 
    	private int att12=0; // route1 -> façade 2
    	private int att13=0; // route1 -> façade 3
    	private int att14=0; // route1 -> façade 4
     
    	// Corrections à apporter sur chaque face en fonction de la route 2 uniquement:
    	private int att21=0; // route2 -> façade 1
    	private int att22b=0; // route2 -> façade 2 (brute)
    	private int att22=0; // route2 -> façade 2
    	private int att23=0; // route2 -> façade 3
    	private int att24=0; // route2 -> façade 4
     
    	// Corrections à apporter sur chaque face en fonction de la route 3 uniquement:
    	private int att31=0; // route3 -> façade 1
    	private int att32=0; // route3 -> façade 2
    	private int att33b=0; // route3 -> façade 3
    	private int att33=0; // route3 -> façade 3
    	private int att34=0; // route3 -> façade 4
     
    	// Corrections à apporter sur chaque face en fonction de la route 4 uniquement:
    	private int att41=0; // route4 -> façade 1
    	private int att42=0; // route4 -> façade 2
    	private int att43=0; // route4 -> façade 3
    	private int att44b=0; // route4 -> façade 4
    	private int att44=0; // route4 -> façade 4
     
    	// Corrections à apporter sur chaque face en fonction de la route 5 uniquement:
    	private int att51=0; // route5 -> façade 1
    	private int att52=0; // route5 -> façade 2
    	private int att53=0; // route5 -> façade 3
    	private int att54=0; // route5 -> façade 4
     
    	// Corrections à apporter sur chaque face en fonction de la route 6 uniquement:
    	private int att61=0; // route6 -> façade 1
    	private int att62=0; // route6 -> façade 2
    	private int att63=0; // route6 -> façade 3
    	private int att64=0; // route6 -> façade 4
     
    	// Corrections à apporter sur chaque face en fonction de la route 7 uniquement:
    	private int att71=0; // route7 -> façade 1
    	private int att72=0; // route7 -> façade 2
    	private int att73=0; // route7 -> façade 3
    	private int att74=0; // route7 -> façade 4
     
    	// Corrections à apporter sur chaque face en fonction de la route 8 uniquement:
    	private int att81=0; // route8 -> façade 1
    	private int att82=0; // route8 -> façade 2
    	private int att83=0; // route8 -> façade 3
    	private int att84=0; // route8 -> façade 4
     
    	//Correction finale à apporter sur chacune des 4 façades
    	private JTextField jtf_att1;
    	private JTextField jtf_att2;
    	private JTextField jtf_att3;
    	private JTextField jtf_att4;
     
    	private int flag_route1=0, flag_route2=0, flag_route3=0, flag_route4=0, flag_route5=0, flag_route6=0, flag_route7=0, flag_route8=0;
     
    	private JButton button1;
    	private JButton button2;
    	private JButton button3;
    	private JButton button4;
    	private JButton button5;
    	private JButton button6;
    	private JButton button7;
    	private JButton button8;
    	private JButton button9;
     
     
    	Image image1, image2;     
        JPanel dessin = new JPanel();
     
     
     
     
    	public ViewTissusOuvertRoute(Controller controller)
    	{     
     
            this.setLocationRelativeTo(null);
            this.setTitle("Route ou voie ferrée en tissus ouvert");
            this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);      
     
            this.test1.add(quitter);
          	this.test3.add(aPropos);
        	this.menuBar.add(test1);
        	this.menuBar.add(test2);
        	this.menuBar.add(test3);
        	this.setJMenuBar(menuBar);  
        	configTor = new ConfigTor();
     
        	contenu= this.getContentPane();
     
          	contenu.setLayout(new GridLayout(2, 1));
     
        	/* Créer un sous Container pour contenir deux élements */
    		JPanel sousPanel1 = new JPanel();
    		sousPanel1.setLayout(new GridLayout(1, 2));
     
    		frame1 = new Frame1();
    		contenu1 = frame1.getContentPane();
    		sousPanel1.add(contenu1);
     
    		frame3 = new Frame3();
    		contenu3 = frame3.getContentPane();
    		sousPanel1.add(contenu3);
     
    		frame4 = new Frame4();
    		contenu4 = frame4.getContentPane();
     
    		contenu.add(sousPanel1);
    		contenu.add(contenu4);
     
    		frame4.getOkTor().addActionListener(new Event(controller));
    		frame4.getOkTor().setActionCommand("ok_tor");
    		frame4.getRetourTor().addActionListener(new Event(controller));
    		frame4.getRetourTor().setActionCommand("retour_tor");
    		frame4.getSuivantTor().addActionListener(new Event(controller));
    		frame4.getSuivantTor().setActionCommand("suivant_tor");
     
    	    button1.addActionListener(new Event(controller));
    	    button1.setActionCommand("TORFaceLat1");
    	    button2.addActionListener(new Event(controller));
    	    button2.setActionCommand("TORFace");
    	    button3.addActionListener(new Event(controller));
    	    button3.setActionCommand("TORFaceLat2");
    	    button4.addActionListener(new Event(controller));
    	    button4.setActionCommand("TORLat1");
    	    button5.addActionListener(new Event(controller));
    	    button5.setActionCommand("neutre");
    	    button6.addActionListener(new Event(controller));
    	    button6.setActionCommand("TORLat2");
    	    button7.addActionListener(new Event(controller));
    	    button7.setActionCommand("TORArrLat1");
    	    button8.addActionListener(new Event(controller));
    	    button8.setActionCommand("TORArr");
    	    button9.addActionListener(new Event(controller));
    	    button9.setActionCommand("TORArrLat2");
     
     
    		this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    		this.setExtendedState(this.getExtendedState() | this.MAXIMIZED_BOTH); //Maximiser
    		quitter.addActionListener(new Event(controller));
    	    quitter.setActionCommand("quitter");
     
    	    aPropos.addActionListener(new Event(controller));
    	    aPropos.setActionCommand("aPropos");
     
    	}
     
     
    	public JPanel getConfigPanel()
    	{
    		JPanel p = new JPanel();
    		p.setLayout(new GridLayout(3, 3));
     
    	    frame2 = new Frame2();
    	    contenu2 = frame2.getContentPane();
     
     
    		JPanel p1 = new JPanel();
    		p1.setLayout(new GridLayout(3, 3));
     
    		JPanel p11 = new JPanel();
    		jtf_orr1 = new JTextField(3);
    		JPanel p12 = new JPanel();
    		p12.add(jtf_orr1);
    		JPanel p13 = new JPanel();
    		JPanel p14 = new JPanel();
     
    		JPanel p15 = new JPanel();
     
    		JPanel p16 = new JPanel();
    		JPanel p17 = new JPanel();
    		jtf_att1 = new JTextField(3);
    		jtf_att1.setEditable(false);
    		JPanel p18 = new JPanel();
    		p18.add(jtf_att1);
    		JPanel p19 = new JPanel();
     
     
    		p1.add(p11);
    		p1.add(p12);
    		p1.add(p13);
    		p1.add(p14);
    		p1.add(p15);
    		p1.add(p16);
    		p1.add(p17);
    		p1.add(p18);
    		p1.add(p19);
     
     
     
    		JPanel p2 = new JPanel();
    		p2.setLayout(new GridLayout(3, 3));
     
    		JPanel p21 = new JPanel();
    		JPanel p22 = new JPanel();
    		JPanel p23 = new JPanel();
    		jtf_att2 = new JTextField(3);
    		jtf_att2.setEditable(false);
    		JPanel p24 = new JPanel();
    		p24.add(jtf_att2);
    		JPanel p25 = new JPanel();
    		jtf_orr2 = new JTextField(3);
    		jtf_orr2.setEditable(false);
    		JPanel p26 = new JPanel();
    		p26.add(jtf_orr2);
    		JPanel p27 = new JPanel();
    		JPanel p28 = new JPanel();
    		JPanel p29 = new JPanel();
     
     
    		p2.add(p21);
    		p2.add(p22);
    		p2.add(p23);
    		p2.add(p24);
    		p2.add(p25);
    		p2.add(p26);
    		p2.add(p27);
    		p2.add(p28);
    		p2.add(p29);
     
     
    		JPanel p3 = new JPanel();
    		p3.setLayout(new GridLayout(3, 3));
     
    		JPanel p31 = new JPanel();
    		jtf_att3 = new JTextField(3);
    		jtf_att3.setEditable(false);
    		JPanel p32 = new JPanel();
    		p32.add(jtf_att3);
    		JPanel p33 = new JPanel();
    		JPanel p34 = new JPanel();
    		JPanel p35 = new JPanel();
    		JPanel p36 = new JPanel();
    		JPanel p37 = new JPanel();
    		jtf_orr3 = new JTextField(3);
    		jtf_orr3.setEditable(false);
    		JPanel p38 = new JPanel();
    		p38.add(jtf_orr3);
    		JPanel p39 = new JPanel();
     
     
    		p3.add(p31);
    		p3.add(p32);
    		p3.add(p33);
    		p3.add(p34);
    		p3.add(p35);
    		p3.add(p36);
    		p3.add(p37);
    		p3.add(p38);
    		p3.add(p39);
     
     
    		JPanel p4 = new JPanel();
    		p4.setLayout(new GridLayout(3, 3));
     
    		JPanel p41 = new JPanel();
    		JPanel p42 = new JPanel();
    		JPanel p43 = new JPanel();
    		jtf_orr4 = new JTextField(3);
    		jtf_orr4.setEditable(false);
    		JPanel p44 = new JPanel();
    		p44.add(jtf_orr4);
    		JPanel p45 = new JPanel();
    		jtf_att4 = new JTextField(3);
    		jtf_att4.setEditable(false);
    		JPanel p46 = new JPanel();
    		p46.add(jtf_att4);
    		JPanel p47 = new JPanel();
    		JPanel p48 = new JPanel();
    		JPanel p49 = new JPanel();
     
     
    		p4.add(p41);
    		p4.add(p42);
    		p4.add(p43);
    		p4.add(p44);
    		p4.add(p45);
    		p4.add(p46);
    		p4.add(p47);
    		p4.add(p48);
    		p4.add(p49);
     
     
     
    		button1 = new JButton();
    		button2 = new JButton();
    		button3 = new JButton();
    		button4 = new JButton();
    		button5 = new JButton();
    		button6 = new JButton();
    		button7 = new JButton();
    		button8 = new JButton();
    		button9 = new JButton();
     
     
    	    JPanel p9 = new JPanel();
    	    p9.setLayout(new GridLayout(3, 3));
    	    p9.add(button1);p9.add(button2);p9.add(button3);p9.add(button4);p9.add(button5);p9.add(button6);p9.add(button7);p9.add(button8);p9.add(button9);
     
    		//JLabel p9 = new JLabel(new ImageIcon("images/maison.jpg"));
     
     
     
     
    		JPanel p6 = new JPanel();
    		p6.setLayout(new GridLayout(3, 3));
     
    		JPanel p61 = new JPanel();
    		JPanel p62 = new JPanel();
    		JPanel p63 = new JPanel();
    		JPanel p64 = new JPanel();
    		jtf_orr6 = new JTextField(3);
    		jtf_orr6.setEditable(false);
    		JPanel p65 = new JPanel();
    		p65.add(jtf_orr6);
    		JPanel p66 = new JPanel();
    		JPanel p67 = new JPanel();
    		JPanel p68 = new JPanel();
    		JPanel p69 = new JPanel();
     
    		p6.add(p61);
    		p6.add(p62);
    		p6.add(p63);
    		p6.add(p64);
    		p6.add(p65);
    		p6.add(p66);
    		p6.add(p67);
    		p6.add(p68);
    		p6.add(p69);
     
     
    		JPanel p7 = new JPanel();
    		p7.setLayout(new GridLayout(3, 3));
     
    		JPanel p71 = new JPanel();
    		JPanel p72 = new JPanel();
    		JPanel p73 = new JPanel();
    		JPanel p74 = new JPanel();
    		jtf_orr7 = new JTextField(3);
    		jtf_orr7.setEditable(false);
    		JPanel p75 = new JPanel();
    		p75.add(jtf_orr7);
    		JPanel p76 = new JPanel();
    		JPanel p77 = new JPanel();
    		JPanel p78 = new JPanel();
    		JPanel p79 = new JPanel();
     
    		p7.add(p71);
    		p7.add(p72);
    		p7.add(p73);
    		p7.add(p74);
    		p7.add(p75);
    		p7.add(p76);
    		p7.add(p77);
    		p7.add(p78);
    		p7.add(p79);
     
     
    		JPanel p8 = new JPanel();
    		p8.setLayout(new GridLayout(3, 3));
     
    		JPanel p81 = new JPanel();
    		JPanel p82 = new JPanel();
    		JPanel p83 = new JPanel();
    		JPanel p84 = new JPanel();
    		jtf_orr8 = new JTextField(3);
    		jtf_orr8.setEditable(false);
    		JPanel p85 = new JPanel();
    		p85.add(jtf_orr8);
    		JPanel p86 = new JPanel();
    		JPanel p87 = new JPanel();
    		JPanel p88 = new JPanel();
    		JPanel p89 = new JPanel();
     
    		p8.add(p81);
    		p8.add(p82);
    		p8.add(p83);
    		p8.add(p84);
    		p8.add(p85);
    		p8.add(p86);
    		p8.add(p87);
    		p8.add(p88);
    		p8.add(p89);
     
     
    		JPanel p5 = new JPanel();
    		p5.setLayout(new GridLayout(3, 3));
     
    		JPanel p51 = new JPanel();
    		JPanel p52 = new JPanel();
    		JPanel p53 = new JPanel();
    		JPanel p54 = new JPanel();
    		jtf_orr5 = new JTextField(3);
    		jtf_orr5.setEditable(false);
    		JPanel p55 = new JPanel();
    		p55.add(jtf_orr5);
    		JPanel p56 = new JPanel();
    		JPanel p57 = new JPanel();
    		JPanel p58 = new JPanel();
    		JPanel p59 = new JPanel();
     
     
    		p5.add(p51);
    		p5.add(p52);
    		p5.add(p53);
    		p5.add(p54);
    		p5.add(p55);
    		p5.add(p56);
    		p5.add(p57);
    		p5.add(p58);
    		p5.add(p59);
     
    		p.add(p8);
    		p.add(p1);
    		p.add(p5);
    		p.add(p4);
    		p.add(p9);
    		p.add(p2);
    		p.add(p7);
    		p.add(p3);
    		p.add(p6);
     
    		return p;
    	}
     
     
     
    	public class Frame1 extends JFrame 
    	{
    	   private JButton documentation = new JButton("POSITION DE LA MAISON ET ROUTES");
    	   private JPanel ouest = new JPanel();
    	   private JPanel est = new JPanel();
     
    	   public Frame1() 
    	   {
    		  Image1 image1 = new Image1();
    	  	  //ouest.setBackground(Color.BLUE);
    	      add(ouest, BorderLayout.WEST);
    	      //add(sud, BorderLayout.SOUTH);
    	      add(image1, BorderLayout.CENTER);
    	      add(documentation, BorderLayout.NORTH);
    	      add(est, BorderLayout.EAST);
    	      setVisible(true);
    	   }
    	}  
     
     
     
    	public class Frame2 extends JFrame 
    	{
     
    	   private JPanel ouest = new JPanel();
    	   private JPanel est = new JPanel();
     
    	   public Frame2() 
    	   {
    		  Image2 image2 = new Image2();
    		  //ouest.setBackground(Color.BLUE);
    		  add(ouest, BorderLayout.WEST);
    		  //add(sud, BorderLayout.SOUTH);
    	      add(image2, BorderLayout.CENTER);
    	      add(est, BorderLayout.EAST);
    	      setVisible(true);
    	   }
    	}  
     
     
     
     
     
    	public class Frame3 extends JFrame 
    	{
    	   private JButton documentation = new JButton("EMPLACEMENT DE LA PIECE A ETUDIER");
    	   private JPanel ouest = new JPanel();
    	   private JPanel est = new JPanel();
     
    	   public Frame3() 
    	   {
    	  	  //ouest.setBackground(Color.BLUE);
    	      add(ouest, BorderLayout.WEST);
    	      //add(sud, BorderLayout.SOUTH);
    	      add(getConfigPanel(), BorderLayout.CENTER);
    	      add(documentation, BorderLayout.NORTH);
    	      add(est, BorderLayout.EAST);
    	      setVisible(true);
    	   }
    	}  
     
     
     
     
    	public class Frame4 extends JFrame 
    	{
    	   private JButton ok_tor = new JButton("OK");
    	   private JButton retour_tor = new JButton("< RETOUR");
    	   private JButton suivant_tor = new JButton("SUIVANT >");
    	   private ConfigTor configTor;
     
    	   public Frame4() 
    	   {
    		  configTor = new ConfigTor();
    		  add(configTor, BorderLayout.CENTER);
    		  add(getFieldPanelFrame5() , BorderLayout.SOUTH);
    		  setVisible(true);
    	   }
     
    	   public JButton getOkTor()
    	   {
    		   return ok_tor;
    	   }
     
    	   public JButton getRetourTor()
    	   {
    		   return retour_tor;
    	   }
     
    	   public JButton getSuivantTor()
    	   {
    		   return suivant_tor;
    	   }
     
     
    	   public JPanel getFieldPanelFrame5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      GridBagConstraints c = new GridBagConstraints();
     
    	      setMyConstraints(c,1,0,GridBagConstraints.CENTER);
    	      p.add(ok_tor,c);
    	      setMyConstraints(c,0,0,GridBagConstraints.WEST);
    	      p.add(retour_tor,c); 
    	      setMyConstraints(c,2,0,GridBagConstraints.CENTER);
    	      p.add(suivant_tor,c);
     
    	      return p;
    	   }
     
    	   public void setMyConstraints(GridBagConstraints c, int gridx, int gridy, int anchor) 
    	   {
    	      c.gridx = gridx;
    	      c.gridy = gridy;
    	      c.anchor = anchor;
    	   }
    	}  
     
     
     
    	public class Image1 extends JPanel
    	{ 
    	    String image1; // image de fond
     
    	    public Image1() 
    	    { 
    	         this.image1 = "images/config.jpg"; // image de fond
    	    }
     
    	    public void paintComponent(Graphics g)
    	    {
    	         g.drawImage(new ImageIcon(Toolkit.getDefaultToolkit().getImage(image1)).getImage(), 0, 0, this.getWidth(), this.getHeight(), null);
    	    }
    	}
     
     
    	public class Image2 extends JPanel
    	{ 
    	    String image2; // image de fond
     
    	    public Image2() 
    	    { 
    	         this.image2 = "images/chouette.gif"; // image de fond
    	    }
     
    	    public void paintComponent(Graphics g)
    	    {
    	         g.drawImage(new ImageIcon(Toolkit.getDefaultToolkit().getImage(image2)).getImage(), 0, 0, this.getWidth(), this.getHeight(), null);
    	    }
    	}
     
     
     
     
     
     
     
     
     
    	public class ConfigTor extends JPanel
    	{
     
    	   private JCheckBox jcb_1;
    	   private JComboBox cb_categorie1;
    	   public JTextField jtf_dist1;
    	   private JComboBox cb_correction11;
    	   private JComboBox cb_correction21_h;
    	   private JComboBox cb_correction21_d;
     
    	   private JCheckBox jcb_2;
    	   private JComboBox cb_categorie2;
    	   private JTextField jtf_dist2;
    	   private JComboBox cb_correction12;
    	   private JComboBox cb_correction22_h;
    	   private JComboBox cb_correction22_d;
     
    	   private JCheckBox jcb_3;
    	   private JComboBox cb_categorie3;
    	   private JTextField jtf_dist3;
    	   private JComboBox cb_correction13;
    	   private JComboBox cb_correction23_h;
    	   private JComboBox cb_correction23_d;
     
    	   private JCheckBox jcb_4;
    	   private JComboBox cb_categorie4;
    	   private JTextField jtf_dist4;
    	   private JComboBox cb_correction14;
    	   private JComboBox cb_correction24_h;
    	   private JComboBox cb_correction24_d;
     
    	   private JCheckBox jcb_5;
    	   private JComboBox cb_categorie5;
    	   private JTextField jtf_dist5;
    	   private JComboBox cb_correction15;
    	   private JComboBox cb_correction25_h;
    	   private JComboBox cb_correction25_d;
     
    	   private JCheckBox jcb_6;
    	   private JComboBox cb_categorie6;
    	   private JTextField jtf_dist6;
    	   private JComboBox cb_correction16;
    	   private JComboBox cb_correction26_h;
    	   private JComboBox cb_correction26_d;
     
    	   private JCheckBox jcb_7;
    	   private JComboBox cb_categorie7;
    	   private JTextField jtf_dist7;
    	   private JComboBox cb_correction17;
    	   private JComboBox cb_correction27_h;
    	   private JComboBox cb_correction27_d;
     
    	   private JCheckBox jcb_8;
    	   private JComboBox cb_categorie8;
    	   private JTextField jtf_dist8;
    	   private JComboBox cb_correction18;
    	   private JComboBox cb_correction28_h;
    	   private JComboBox cb_correction28_d; 
     
     
     
     
     
     
     
    	   public JCheckBox getTOR_jcb1()
    	   {
    		   return jcb_1;
    	   }
     
    	   public JCheckBox getTOR_jcb2()
    	   {
    		   return jcb_2;
    	   }
     
    	   public JCheckBox getTOR_jcb3()
    	   {
    		   return jcb_3;
    	   }
     
    	   public JCheckBox getTOR_jcb4()
    	   {
    		   return jcb_4;
    	   }
     
    	   public JCheckBox getTOR_jcb5()
    	   {
    		   return jcb_5;
    	   }
     
    	   public JCheckBox getTOR_jcb6()
    	   {
    		   return jcb_6;
    	   }
     
    	   public JCheckBox getTOR_jcb7()
    	   {
    		   return jcb_7;
    	   }
     
    	   public JCheckBox getTOR_jcb8()
    	   {
    		   return jcb_8;
    	   }
     
     
     
    	   public JTextField getTOR_jtf_dist1()
    	   {
    		   return jtf_dist1;
    	   }
     
    	   public JTextField getTOR_jtf_dist2()
    	   {
    		   return jtf_dist2;
    	   }
     
    	   public JTextField getTOR_jtf_dist3()
    	   {
    		   return jtf_dist3;
    	   }
     
    	   public JTextField getTOR_jtf_dist4()
    	   {
    		   return jtf_dist4;
    	   }
     
    	   public JTextField getTOR_jtf_dist5()
    	   {
    		   return jtf_dist5;
    	   }
     
    	   public JTextField getTOR_jtf_dist6()
    	   {
    		   return jtf_dist6;
    	   }
     
    	   public JTextField getTOR_jtf_dist7()
    	   {
    		   return jtf_dist7;
    	   }
     
    	   public JTextField getTOR_jtf_dist8()
    	   {
    		   return jtf_dist8;
    	   }
     
     
     
     
     
    	   public JComboBox getTOR_cb_categorie1()
    	   {
    		   return cb_categorie1;
    	   }
     
    	   public JComboBox getTOR_cb_categorie2()
    	   {
    		   return cb_categorie2;
    	   }
     
    	   public JComboBox getTOR_cb_categorie3()
    	   {
    		   return cb_categorie3;
    	   }
     
    	   public JComboBox getTOR_cb_categorie4()
    	   {
    		   return cb_categorie4;
    	   }
     
    	   public JComboBox getTOR_cb_categorie5()
    	   {
    		   return cb_categorie5;
    	   }
     
    	   public JComboBox getTOR_cb_categorie6()
    	   {
    		   return cb_categorie6;
    	   }
     
    	   public JComboBox getTOR_cb_categorie7()
    	   {
    		   return cb_categorie7;
    	   }
     
    	   public JComboBox getTOR_cb_categorie8()
    	   {
    		   return cb_categorie8;
    	   }
     
     
     
     
    	   public JComboBox getTOR_cb_correction11()
    	   {
    		   return cb_correction11;
    	   }
     
    	   public JComboBox getTOR_cb_correction21_h()
    	   {
    		   return cb_correction21_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction21_d()
    	   {
    		   return cb_correction21_d;
    	   }
     
     
    	   public JComboBox getTOR_cb_correction12()
    	   {
    		   return cb_correction12;
    	   }
     
    	   public JComboBox getTOR_cb_correction22_h()
    	   {
    		   return cb_correction22_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction22_d()
    	   {
    		   return cb_correction22_d;
    	   }
     
     
     
    	   public JComboBox getTOR_cb_correction13()
    	   {
    		   return cb_correction13;
    	   }
     
    	   public JComboBox getTOR_cb_correction23_h()
    	   {
    		   return cb_correction23_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction23_d()
    	   {
    		   return cb_correction23_d;
    	   }
     
     
    	   public JComboBox getTOR_cb_correction14()
    	   {
    		   return cb_correction14;
    	   }
     
    	   public JComboBox getTOR_cb_correction24_h()
    	   {
    		   return cb_correction24_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction24_d()
    	   {
    		   return cb_correction24_d;
    	   }
     
     
     
    	   public JComboBox getTOR_cb_correction15()
    	   {
    		   return cb_correction15;
    	   }
     
    	   public JComboBox getTOR_cb_correction25_h()
    	   {
    		   return cb_correction25_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction25_d()
    	   {
    		   return cb_correction25_d;
    	   }
     
     
    	   public JComboBox getTOR_cb_correction16()
    	   {
    		   return cb_correction16;
    	   }
     
    	   public JComboBox getTOR_cb_correction26_h()
    	   {
    		   return cb_correction26_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction26_d()
    	   {
    		   return cb_correction26_d;
    	   }
     
     
    	   public JComboBox getTOR_cb_correction17()
    	   {
    		   return cb_correction17;
    	   }
     
    	   public JComboBox getTOR_cb_correction27_h()
    	   {
    		   return cb_correction27_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction27_d()
    	   {
    		   return cb_correction27_d;
    	   }
     
     
     
    	   public JComboBox getTOR_cb_correction18()
    	   {
    		   return cb_correction18;
    	   }
     
    	   public JComboBox getTOR_cb_correction28_h()
    	   {
    		   return cb_correction28_h;
    	   }
     
    	   public JComboBox getTOR_cb_correction28_d()
    	   {
    		   return cb_correction28_d;
    	   }
     
     
     
     
     
    	   public ConfigTor()
    	   {
     
    		  jtf_dist1 = new JTextField(3);
    		  jtf_dist2 = new JTextField(3);
    		  jtf_dist3 = new JTextField(3);
    		  jtf_dist4 = new JTextField(3);
    		  jtf_dist5 = new JTextField(3);
    		  jtf_dist6 = new JTextField(3);
    		  jtf_dist7 = new JTextField(3);
    		  jtf_dist8 = new JTextField(3);
     
    		  this.setBorder(BorderFactory.createTitledBorder("Configuration de la maison"));
    	      this.setLayout(new GridBagLayout());
    	      GridBagConstraints c = new GridBagConstraints();
    	      setMyConstraints(c,0,0,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel1(),c);
    	      setMyConstraints(c,0,1,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel2(),c);
    	      setMyConstraints(c,0,2,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel3(),c);
    	      setMyConstraints(c,0,3,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel4(),c);
    	      setMyConstraints(c,0,4,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel5(),c);
    	      setMyConstraints(c,0,5,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel6(),c);
    	      setMyConstraints(c,0,6,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel7(),c);
    	      setMyConstraints(c,0,7,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel8(),c);
     
    	   }
     
     
     
    	   public JPanel getFieldPanel1() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb1() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat1(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist1(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat1(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut1h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut1d(),c);
     
    	      return p;
    	   }
     
     
    	   public JPanel getFieldPanel2() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb2() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat2(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist2(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat2(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut2h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut2d(),c);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanel3() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb3() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat3(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist3(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat3(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut3h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut3d(),c);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanel4() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb4() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat4(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist4(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat4(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut4h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut4d(),c);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanel5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb5() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat5(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist5(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat5(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut5h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut5d(),c);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanel6() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb6() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat6(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist6(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat6(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut6h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut6d(),c);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanel7() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb7() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat7(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist7(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat7(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut7h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut7d(),c);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanel8() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      GridBagConstraints c = new GridBagConstraints();
     
     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb8() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat8(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist8(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat8(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut8h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut8d(),c);
     
    	      return p;
    	   }
     
     
    	   public JPanel getFieldPanelJcb1() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_1 = new JCheckBox("route1");
    	      jcb_1.addActionListener(new StateListener());
    	      jcb_1.setSelected(false);
    	      p.add(jcb_1);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelJcb2() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_2 = new JCheckBox("route2");
    	      jcb_2.addActionListener(new StateListener());
    	      jcb_2.setSelected(false);
    	      p.add(jcb_2);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelJcb3() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_3 = new JCheckBox("route3");
    	      jcb_3.addActionListener(new StateListener());
    	      jcb_3.setSelected(false);
    	      p.add(jcb_3);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelJcb4() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_4 = new JCheckBox("route4");
    	      jcb_4.addActionListener(new StateListener());
    	      jcb_4.setSelected(false);
    	      p.add(jcb_4);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelJcb5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_5 = new JCheckBox("route5");
    	      jcb_5.addActionListener(new StateListener());
    	      jcb_5.setSelected(false);
    	      p.add(jcb_5);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelJcb6() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_6 = new JCheckBox("route6");
    	      jcb_6.addActionListener(new StateListener());
    	      jcb_6.setSelected(false);
    	      p.add(jcb_6);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelJcb7() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_7 = new JCheckBox("route7");
    	      jcb_7.addActionListener(new StateListener());
    	      jcb_7.setSelected(false);
    	      p.add(jcb_7);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelJcb8() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_8 = new JCheckBox("route8");
    	      jcb_8.addActionListener(new StateListener());
    	      jcb_8.setSelected(false);
    	      p.add(jcb_8);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist1() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(jtf_dist1);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist2() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(jtf_dist2);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist3() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(jtf_dist3);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist4() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(jtf_dist4);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(jtf_dist5);
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist6() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(jtf_dist6);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist7() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      p.add(jtf_dist7);
     
    	      return p;
    	   }
     
    	   public JPanel getFieldPanelDist8() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
     
    	      p.add(jtf_dist8);
     
    	      return p;
    	   }
     
     
     
     
     
     
     
    	   public JPanel getSystemPanelCat1() 
    	   {
    		  cb_categorie1= new JComboBox();
    		  cb_categorie1.addItem("1");
    	      cb_categorie1.addItem("2");
    	      cb_categorie1.addItem("3");
    	      cb_categorie1.addItem("4");
    	      cb_categorie1.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie1);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelCat2() 
    	   {
    		  cb_categorie2= new JComboBox();
    		  cb_categorie2.addItem("1");
    	      cb_categorie2.addItem("2");
    	      cb_categorie2.addItem("3");
    	      cb_categorie2.addItem("4");
    	      cb_categorie2.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie2);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelCat3() 
    	   {
    		  cb_categorie3= new JComboBox();
    		  cb_categorie3.addItem("1");
    	      cb_categorie3.addItem("2");
    	      cb_categorie3.addItem("3");
    	      cb_categorie3.addItem("4");
    	      cb_categorie3.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie3);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelCat4() 
    	   {
    		  cb_categorie4= new JComboBox();
    		  cb_categorie4.addItem("1");
    	      cb_categorie4.addItem("2");
    	      cb_categorie4.addItem("3");
    	      cb_categorie4.addItem("4");
    	      cb_categorie4.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie4);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelCat5() 
    	   {
    		  cb_categorie5= new JComboBox();
    		  cb_categorie5.addItem("1");
    	      cb_categorie5.addItem("2");
    	      cb_categorie5.addItem("3");
    	      cb_categorie5.addItem("4");
    	      cb_categorie5.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie5);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelCat6() 
    	   {
    		  cb_categorie6= new JComboBox();
    		  cb_categorie6.addItem("1");
    	      cb_categorie6.addItem("2");
    	      cb_categorie6.addItem("3");
    	      cb_categorie6.addItem("4");
    	      cb_categorie6.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie6);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelCat7() 
    	   {
    		  cb_categorie7= new JComboBox();
    		  cb_categorie7.addItem("1");
    	      cb_categorie7.addItem("2");
    	      cb_categorie7.addItem("3");
    	      cb_categorie7.addItem("4");
    	      cb_categorie7.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie7);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelCat8() 
    	   {
    		  cb_categorie8= new JComboBox();
    		  cb_categorie8.addItem("1");
    	      cb_categorie8.addItem("2");
    	      cb_categorie8.addItem("3");
    	      cb_categorie8.addItem("4");
    	      cb_categorie8.addItem("5");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie8);
     
    	      return p;
    	   }
     
     
    	   public JPanel getSystemPanelBat1() 
    	   {
    		  cb_correction11 = new JComboBox();
    		  cb_correction11.addItem("non");
    		  cb_correction11.addItem("trouées assez larges");
    		  cb_correction11.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction11);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelBat2() 
    	   {
    		  cb_correction12 = new JComboBox();
    		  cb_correction12.addItem("non");
    		  cb_correction12.addItem("trouées assez larges");
    		  cb_correction12.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction12);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelBat3() 
    	   {
    		  cb_correction13 = new JComboBox();
    		  cb_correction13.addItem("non");
    		  cb_correction13.addItem("trouées assez larges");
    		  cb_correction13.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction13);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelBat4() 
    	   {
    		  cb_correction14 = new JComboBox();
    		  cb_correction14.addItem("non");
    		  cb_correction14.addItem("trouées assez larges");
    		  cb_correction14.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction14);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelBat5() 
    	   {
    		  cb_correction15 = new JComboBox();
    		  cb_correction15.addItem("non");
    		  cb_correction15.addItem("trouées assez larges");
    		  cb_correction15.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction15);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelBat6() 
    	   {
    		  cb_correction16 = new JComboBox();
    		  cb_correction16.addItem("non");
    		  cb_correction16.addItem("trouées assez larges");
    		  cb_correction16.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction16);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelBat7() 
    	   {
    		  cb_correction17 = new JComboBox();
    		  cb_correction17.addItem("non");
    		  cb_correction17.addItem("trouées assez larges");
    		  cb_correction17.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction17);
     
    	      return p;
    	   }
     
    	   public JPanel getSystemPanelBat8() 
    	   {
    		  cb_correction18 = new JComboBox();
    		  cb_correction18.addItem("non");
    		  cb_correction18.addItem("trouées assez larges");
    		  cb_correction18.addItem("sans ou rares trouées");
     
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction18);
     
    	      return p;
    	   }
     
     
     
     
    	   public JPanel getSystemPanelBut1h() 
    	   {
    		   cb_correction21_h= new JComboBox();
    		   cb_correction21_h.addItem("non");
    		   cb_correction21_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction21_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction21_h);
     
    		   return p;
    	   }
     
    	   public JPanel getSystemPanelBut2h() 
    	   {
    		   cb_correction22_h= new JComboBox();
    		   cb_correction22_h.addItem("non");
    		   cb_correction22_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction22_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction22_h);
     
    		   return p;
    	   }
     
    	   public JPanel getSystemPanelBut3h() 
    	   {
    		   cb_correction23_h= new JComboBox();
    		   cb_correction23_h.addItem("non");
    		   cb_correction23_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction23_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction23_h);
     
    		   return p;
    	   }
     
    	   public JPanel getSystemPanelBut4h() 
    	   {
    		   cb_correction24_h= new JComboBox();
    		   cb_correction24_h.addItem("non");
    		   cb_correction24_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction24_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction24_h);
     
    		   return p;
    	   }
     
    	   public JPanel getSystemPanelBut5h() 
    	   {
    		   cb_correction25_h= new JComboBox();
    		   cb_correction25_h.addItem("non");
    		   cb_correction25_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction25_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction25_h);
     
    		   return p;
    	   }
     
    	   public JPanel getSystemPanelBut6h() 
    	   {
    		   cb_correction26_h= new JComboBox();
    		   cb_correction26_h.addItem("non");
    		   cb_correction26_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction26_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction26_h);
     
    		   return p;
    	   }
     
    	   public JPanel getSystemPanelBut7h() 
    	   {
    		   cb_correction27_h= new JComboBox();
    		   cb_correction27_h.addItem("non");
    		   cb_correction27_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction27_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction27_h);
     
    		   return p;
    	   }
     
    	   public JPanel getSystemPanelBut8h() 
    	   {
    		   cb_correction28_h= new JComboBox();
    		   cb_correction28_h.addItem("non");
    		   cb_correction28_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction28_h.addItem("4m < hauteur butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction28_h);
     
    		   return p;
    	   }
     
     
     
     
    	   public JPanel getSystemPanelBut1d()
    	   {
    		   cb_correction21_d= new JComboBox();
    		   cb_correction21_d.addItem("non");
    		   cb_correction21_d.addItem("distance butte < 150m");
    		   cb_correction21_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction21_d);
     
    		   return p;
    	   }
     
     
    	   public JPanel getSystemPanelBut2d()
    	   {
    		   cb_correction22_d= new JComboBox();
    		   cb_correction22_d.addItem("non");
    		   cb_correction22_d.addItem("distance butte < 150m");
    		   cb_correction22_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction22_d);
     
    		   return p;
    	   }
     
     
    	   public JPanel getSystemPanelBut3d()
    	   {
    		   cb_correction23_d= new JComboBox();
    		   cb_correction23_d.addItem("non");
    		   cb_correction23_d.addItem("distance butte < 150m");
    		   cb_correction23_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction23_d);
     
    		   return p;
    	   }
     
     
    	   public JPanel getSystemPanelBut4d()
    	   {
    		   cb_correction24_d= new JComboBox();
    		   cb_correction24_d.addItem("non");
    		   cb_correction24_d.addItem("distance butte < 150m");
    		   cb_correction24_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction24_d);
     
    		   return p;
    	   }
     
     
    	   public JPanel getSystemPanelBut5d()
    	   {
    		   cb_correction25_d= new JComboBox();
    		   cb_correction25_d.addItem("non");
    		   cb_correction25_d.addItem("distance butte < 150m");
    		   cb_correction25_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction25_d);
     
    		   return p;
    	   }
     
     
    	   public JPanel getSystemPanelBut6d()
    	   {
    		   cb_correction26_d= new JComboBox();
    		   cb_correction26_d.addItem("non");
    		   cb_correction26_d.addItem("distance butte < 150m");
    		   cb_correction26_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction26_d);
     
    		   return p;
    	   }
     
     
    	   public JPanel getSystemPanelBut7d()
    	   {
    		   cb_correction27_d= new JComboBox();
    		   cb_correction27_d.addItem("non");
    		   cb_correction27_d.addItem("distance butte < 150m");
    		   cb_correction27_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction27_d);
     
    		   return p;
    	   }
     
     
    	   public JPanel getSystemPanelBut8d()
    	   {
    		   cb_correction28_d= new JComboBox();
    		   cb_correction28_d.addItem("non");
    		   cb_correction28_d.addItem("distance butte < 150m");
    		   cb_correction28_d.addItem("150m < distance butte");
     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction28_d);
     
    		   return p;
    	   }
     
     
    	   public void setMyConstraints(GridBagConstraints c, int gridx, int gridy, int anchor) 
    	   {
    	      c.gridx = gridx;
    	      c.gridy = gridy;
    	      c.anchor = anchor;
    	   }
     
     
     
    	   class StateListener implements ActionListener
    	   {
     
    		   public void actionPerformed(ActionEvent e) 
               {
    			   JCheckBox toto = new JCheckBox();
    			   try
    			   {
    				   toto = ((JCheckBox)e.getSource());
    			   }
    			   catch(Exception ex)
    			   {
    				   System.out.println("ERREUR");
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route1=1;
    				   System.out.println("1");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route1=0;
    				   System.out.println("0");
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route2=1;
    				   System.out.println("2");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route2=0;
    				   System.out.println("0");
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route3=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route3=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route4=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route4=0 ;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route5=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route5=0 ;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route6=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route6=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route7=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route7=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route8=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route8=0;
    			   }
     
     
               }
           }
     
     
     
     
     
    	}
     
     
    }

  10. #10
    Modérateur

    Profil pro
    Inscrit en
    Septembre 2004
    Messages
    12 559
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2004
    Messages : 12 559
    Points : 21 619
    Points
    21 619
    Par défaut
    Tu as vraiment enlevé tout ce que tu pouvais ?

    Il n'y a pas, genre, environ 1700 lignes de code qui peuvent être enlevées sans que ça ne change rien au problème ?

  11. #11
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 47
    Points : 50
    Points
    50
    Par défaut
    heummmm as tu essayé de te mettre en mode débug en cherchant les ClassCastExceptions?

  12. #12
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    Bon, y a pas mal de code et j'ai franchement pas envie de tout me coltiner.

    La première chose à vérifier: est-ce que tu fais bien toutes tes manipulations (création de fenetre, ajout de composants, supressions de composants, changement d'état) à l'intérieur de l'Event Dispatch Thread et pas ailleurs?

    Beaucoup d'erreur obscure de swing viennent en général du non respect de cette règle fondamentale.

  13. #13
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut
    ça vient de là le problème !!

    Je ne sais pas comment utiliser ces satanées JCheckBox !!

    J'aimerais juste, depuis une autre classe de celle où se trouvent les JCheckBox, contrôler si elles sont cochées !!

    Impossible !!

    Alors j'ai fait cette usine à gaz avec des action listener ... tout plante :


    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
     
     
     
     public void actionPerformed(ActionEvent e) 
               {
    			   JCheckBox toto = new JCheckBox();
    			   try
    			   {
    				   toto = ((JCheckBox)e.getSource());
    			   }
    			   catch(Exception ex)
    			   {
    				   System.out.println("ERREUR");
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route1=1;
    				   System.out.println("1");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route1=0;
    				   System.out.println("0");
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route2=1;
    				   System.out.println("2");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route2=0;
    				   System.out.println("0");
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route3=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route3=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route4=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route4=0 ;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route5=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route5=0 ;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route6=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route6=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route7=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route7=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route8=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route8=0;
    			   }
     
     
               }
           }

  14. #14
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 47
    Points : 50
    Points
    50
    Par défaut
    Citation Envoyé par wilfryjules Voir le message
    ça vient de là le problème !!

    Je ne sais pas comment utiliser ces satanées JCheckBox !!

    J'aimerais juste, depuis une autre classe de celle où se trouvent les JCheckBox, contrôler si elles sont cochées !!

    Impossible !!

    Alors j'ai fait cette usine à gaz avec des action listener ... tout plante :


    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
     
     
     
     public void actionPerformed(ActionEvent e) 
               {
    			   JCheckBox toto = new JCheckBox();
    			   try
    			   {
    				   toto = ((JCheckBox)e.getSource());
    			   }
    			   catch(Exception ex)
    			   {
    				   System.out.println("ERREUR");
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route1=1;
    				   System.out.println("1");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route1=0;
    				   System.out.println("0");
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route2=1;
    				   System.out.println("2");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route2=0;
    				   System.out.println("0");
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route3=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route3=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route4=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route4=0 ;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route5=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route5=0 ;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route6=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route6=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route7=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route7=0;
    			   }
     
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route8=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route8=0;
    			   }
     
     
               }
           }
    Ce que je fait pour mes ihm c'est de passer en paramètre des constructeurs la fenêtre. par exemple j'ouvre une popup après une action sur un bouton. dans l'action du bouton je passe en paramètre la fenêtre principale comme ça dans l'action je peut avoir accès aux objets de la fenêtre.

    public FenetrePrincipale extends JFrame {

    initFrame(){
    this.jbutton.addActionListener(new GestionAction(this));
    }
    }

    J'applique cela aussi à des panels quand j'en ai besoin
    public MonPanel extends JPanel{
    public MonPanel(FenetrePrincipale fenetrePrincipale){
    }
    }

  15. #15
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut
    Concernant cette erreur de CastException, je l'ai résolue.

    Je suis dslé de vous avoir dérangé pour ça!! mais je panique très vite !

    Mais là je pense avoir une erreur EXCEPTIONNELLE !!

    De la SORCELLERIE !

    Voici donc en quelques lignes le problème:

    Lorsque je fais des interfaces graphiques, j'ai l'habitude, de tout décomposer en JPanels.

    Ainsi j'instancie chaque JTextField dans une fonction qui renvoie un JPanel.
    C'est ainsi que jtf_dist1 a son propre petit Panel doré, contenu dans la fonction getFieldPanelDist1()
    Je remets ces JPanel dans un autre JPanel principal....

    jusque à présent je ne rencontrais aucun problème puis subitement il n'apprécie pas que j'instancie jtf_dist1 = new JTextField(3).

    Lors de la compilation, ça m'ouvre 36 000 fenêtres en plus de la page d'accueil.
    Le pire dans tout ça, c'est que pour les autres JTextField ça ne plante pas!

    Voici mon code:
    (TOUT N'EST PAS IMPORTANT MAIS J'AI ECRIT EN ROUGE LES ENDROITS OU SE TROUVE jtf_dist1)


    Merci pour votre aide elle me serait fort utile !

    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
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    1248
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
    1289
    1290
    1291
    1292
    1293
    1294
    1295
    1296
    1297
    1298
    1299
    1300
    1301
    1302
    1303
    1304
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
    1329
    1330
    
    
    
    
    
    
    	public class ConfigTor extends JPanel
    	{
    		
    	   private JCheckBox jcb_1;
    	   private JComboBox cb_categorie1;
    	   private JTextField jtf_dist1;
    	   private JComboBox cb_correction11;
    	   private JComboBox cb_correction21_h;
    	   private JComboBox cb_correction21_d;
    	   
    	   private JCheckBox jcb_2;
    	   private JComboBox cb_categorie2;
    	   private JTextField jtf_dist2;
    	   private JComboBox cb_correction12;
    	   private JComboBox cb_correction22_h;
    	   private JComboBox cb_correction22_d;
    	   
    	   private JCheckBox jcb_3;
    	   private JComboBox cb_categorie3;
    	   private JTextField jtf_dist3;
    	   private JComboBox cb_correction13;
    	   private JComboBox cb_correction23_h;
    	   private JComboBox cb_correction23_d;
    	   
    	   private JCheckBox jcb_4;
    	   private JComboBox cb_categorie4;
    	   private JTextField jtf_dist4;
    	   private JComboBox cb_correction14;
    	   private JComboBox cb_correction24_h;
    	   private JComboBox cb_correction24_d;
    	   
    	   private JCheckBox jcb_5;
    	   private JComboBox cb_categorie5;
    	   private JTextField jtf_dist5;
    	   private JComboBox cb_correction15;
    	   private JComboBox cb_correction25_h;
    	   private JComboBox cb_correction25_d;
    	   
    	   private JCheckBox jcb_6;
    	   private JComboBox cb_categorie6;
    	   private JTextField jtf_dist6;
    	   private JComboBox cb_correction16;
    	   private JComboBox cb_correction26_h;
    	   private JComboBox cb_correction26_d;
    	   
    	   private JCheckBox jcb_7;
    	   private JComboBox cb_categorie7;
    	   private JTextField jtf_dist7;
    	   private JComboBox cb_correction17;
    	   private JComboBox cb_correction27_h;
    	   private JComboBox cb_correction27_d;
    	   
    	   private JCheckBox jcb_8;
    	   private JComboBox cb_categorie8;
    	   private JTextField jtf_dist8;
    	   private JComboBox cb_correction18;
    	   private JComboBox cb_correction28_h;
    	   private JComboBox cb_correction28_d; 
    	   
    	  
    	   
    	   public JCheckBox getTOR_jcb1()
    	   {
    		   return jcb_1;
    	   }
    	   
    	   public JCheckBox getTOR_jcb2()
    	   {
    		   return jcb_2;
    	   }
    	   
    	   public JCheckBox getTOR_jcb3()
    	   {
    		   return jcb_3;
    	   }
    	   
    	   public JCheckBox getTOR_jcb4()
    	   {
    		   return jcb_4;
    	   }
    	   
    	   public JCheckBox getTOR_jcb5()
    	   {
    		   return jcb_5;
    	   }
    	   
    	   public JCheckBox getTOR_jcb6()
    	   {
    		   return jcb_6;
    	   }
    	   
    	   public JCheckBox getTOR_jcb7()
    	   {
    		   return jcb_7;
    	   }
    	   
    	   public JCheckBox getTOR_jcb8()
    	   {
    		   return jcb_8;
    	   }
    	   
    	   
    	   // ICI
    	   public JTextField getTOR_jtf_dist1()
    	   {
    		   return jtf_dist1;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist2()
    	   {
    		   return jtf_dist2;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist3()
    	   {
    		   return jtf_dist3;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist4()
    	   {
    		   return jtf_dist4;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist5()
    	   {
    		   return jtf_dist5;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist6()
    	   {
    		   return jtf_dist6;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist7()
    	   {
    		   return jtf_dist7;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist8()
    	   {
    		   return jtf_dist8;
    	   }
    	   
    	   
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_categorie1()
    	   {
    		   return cb_categorie1;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie2()
    	   {
    		   return cb_categorie2;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie3()
    	   {
    		   return cb_categorie3;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie4()
    	   {
    		   return cb_categorie4;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie5()
    	   {
    		   return cb_categorie5;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie6()
    	   {
    		   return cb_categorie6;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie7()
    	   {
    		   return cb_categorie7;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie8()
    	   {
    		   return cb_categorie8;
    	   }
    	   
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction11()
    	   {
    		   return cb_correction11;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction21_h()
    	   {
    		   return cb_correction21_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction21_d()
    	   {
    		   return cb_correction21_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction12()
    	   {
    		   return cb_correction12;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction22_h()
    	   {
    		   return cb_correction22_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction22_d()
    	   {
    		   return cb_correction22_d;
    	   }
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction13()
    	   {
    		   return cb_correction13;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction23_h()
    	   {
    		   return cb_correction23_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction23_d()
    	   {
    		   return cb_correction23_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction14()
    	   {
    		   return cb_correction14;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction24_h()
    	   {
    		   return cb_correction24_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction24_d()
    	   {
    		   return cb_correction24_d;
    	   }
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction15()
    	   {
    		   return cb_correction15;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction25_h()
    	   {
    		   return cb_correction25_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction25_d()
    	   {
    		   return cb_correction25_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction16()
    	   {
    		   return cb_correction16;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction26_h()
    	   {
    		   return cb_correction26_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction26_d()
    	   {
    		   return cb_correction26_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction17()
    	   {
    		   return cb_correction17;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction27_h()
    	   {
    		   return cb_correction27_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction27_d()
    	   {
    		   return cb_correction27_d;
    	   }
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction18()
    	   {
    		   return cb_correction18;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction28_h()
    	   {
    		   return cb_correction28_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction28_d()
    	   {
    		   return cb_correction28_d;
    	   }
    	   
    	   
    	   
    	   		
    	   
    	   
    	   public ConfigTor()
    	   {
    		  
    		 		
    		  this.setBorder(BorderFactory.createTitledBorder("Configuration de la maison"));
    	      this.setLayout(new GridBagLayout());
    	      GridBagConstraints c = new GridBagConstraints();
    	      setMyConstraints(c,0,0,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel1(),c);
    	      setMyConstraints(c,0,1,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel2(),c);
    	      setMyConstraints(c,0,2,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel3(),c);
    	      setMyConstraints(c,0,3,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel4(),c);
    	      setMyConstraints(c,0,4,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel5(),c);
    	      setMyConstraints(c,0,5,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel6(),c);
    	      setMyConstraints(c,0,6,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel7(),c);
    	      setMyConstraints(c,0,7,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel8(),c);
    	      
    	   }
    	   	   
    		   
    	      
    	   public JPanel getFieldPanel1() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	          
    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	       
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb1() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat1(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    //ICI	      
    p.add(getFieldPanelDist1(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat1(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut1h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut1d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	    
    	   public JPanel getFieldPanel2() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	       
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb2() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat2(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist2(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat2(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut2h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut2d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel3() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	       
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb3() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat3(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist3(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat3(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut3h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut3d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel4() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb4() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat4(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist4(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat4(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut4h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut4d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb5() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat5(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist5(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat5(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut5h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut5d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel6() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb6() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat6(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist6(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat6(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut6h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut6d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel7() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb7() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat7(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist7(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat7(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut7h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut7d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel8() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb8() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat8(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist8(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat8(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut8h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut8d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   
    	   public JPanel getFieldPanelJcb1() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_1 = new JCheckBox("route1");
    	      jcb_1.addActionListener(new StateListener());
    	      jcb_1.setSelected(false);
    	      p.add(jcb_1);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb2() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_2 = new JCheckBox("route2");
    	      jcb_2.addActionListener(new StateListener());
    	      jcb_2.setSelected(false);
    	      p.add(jcb_2);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb3() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_3 = new JCheckBox("route3");
    	      jcb_3.addActionListener(new StateListener());
    	      jcb_3.setSelected(false);
    	      p.add(jcb_3);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb4() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_4 = new JCheckBox("route4");
    	      jcb_4.addActionListener(new StateListener());
    	      jcb_4.setSelected(false);
    	      p.add(jcb_4);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_5 = new JCheckBox("route5");
    	      jcb_5.addActionListener(new StateListener());
    	      jcb_5.setSelected(false);
    	      p.add(jcb_5);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb6() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_6 = new JCheckBox("route6");
    	      jcb_6.addActionListener(new StateListener());
    	      jcb_6.setSelected(false);
    	      p.add(jcb_6);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb7() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_7 = new JCheckBox("route7");
    	      jcb_7.addActionListener(new StateListener());
    	      jcb_7.setSelected(false);
    	      p.add(jcb_7);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb8() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_8 = new JCheckBox("route8");
    	      jcb_8.addActionListener(new StateListener());
    	      jcb_8.setSelected(false);
    	      p.add(jcb_8);
    	      return p;
    	   }
    	  	   
    	   
    	   public JPanel getFieldPanelDist1() 
    	   {
    		   JPanel p = new JPanel(new GridBagLayout());
    /** CETTE LIGNE FAIT TOUT PLANTER **/
    		   jtf_dist1 = new JTextField(3);
    	       p.add(jtf_dist1);
    	       return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist2() 
    	   {
    		   JPanel p = new JPanel(new GridBagLayout());
    		   jtf_dist2 = new JTextField(3);
    	       p.add(jtf_dist2);
    	       return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist3() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist3 = new JTextField(3);
    	      p.add(jtf_dist3);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist4() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist4 = new JTextField(3);
    	      p.add(jtf_dist4);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist5() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist5 = new JTextField(3);
    	      p.add(jtf_dist5);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist6() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist6 = new JTextField(3);
    	      p.add(jtf_dist6);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist7() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist7 = new JTextField(3);
    	      p.add(jtf_dist7);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist8() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    		  jtf_dist8 = new JTextField(3);
    	      p.add(jtf_dist8);
    	      return p;
    	   }
    	   
    
    
    
    	   
    	  	   
    	   
    	   public JPanel getSystemPanelCat1() 
    	   {
    		  cb_categorie1= new JComboBox();
    		  cb_categorie1.addItem("1");
    	      cb_categorie1.addItem("2");
    	      cb_categorie1.addItem("3");
    	      cb_categorie1.addItem("4");
    	      cb_categorie1.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie1);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat2() 
    	   {
    		  cb_categorie2= new JComboBox();
    		  cb_categorie2.addItem("1");
    	      cb_categorie2.addItem("2");
    	      cb_categorie2.addItem("3");
    	      cb_categorie2.addItem("4");
    	      cb_categorie2.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie2);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat3() 
    	   {
    		  cb_categorie3= new JComboBox();
    		  cb_categorie3.addItem("1");
    	      cb_categorie3.addItem("2");
    	      cb_categorie3.addItem("3");
    	      cb_categorie3.addItem("4");
    	      cb_categorie3.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie3);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat4() 
    	   {
    		  cb_categorie4= new JComboBox();
    		  cb_categorie4.addItem("1");
    	      cb_categorie4.addItem("2");
    	      cb_categorie4.addItem("3");
    	      cb_categorie4.addItem("4");
    	      cb_categorie4.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie4);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat5() 
    	   {
    		  cb_categorie5= new JComboBox();
    		  cb_categorie5.addItem("1");
    	      cb_categorie5.addItem("2");
    	      cb_categorie5.addItem("3");
    	      cb_categorie5.addItem("4");
    	      cb_categorie5.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie5);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat6() 
    	   {
    		  cb_categorie6= new JComboBox();
    		  cb_categorie6.addItem("1");
    	      cb_categorie6.addItem("2");
    	      cb_categorie6.addItem("3");
    	      cb_categorie6.addItem("4");
    	      cb_categorie6.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie6);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat7() 
    	   {
    		  cb_categorie7= new JComboBox();
    		  cb_categorie7.addItem("1");
    	      cb_categorie7.addItem("2");
    	      cb_categorie7.addItem("3");
    	      cb_categorie7.addItem("4");
    	      cb_categorie7.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie7);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat8() 
    	   {
    		  cb_categorie8= new JComboBox();
    		  cb_categorie8.addItem("1");
    	      cb_categorie8.addItem("2");
    	      cb_categorie8.addItem("3");
    	      cb_categorie8.addItem("4");
    	      cb_categorie8.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie8);
    	       
    	      return p;
    	   }
    	   
    	   	   
    	   public JPanel getSystemPanelBat1() 
    	   {
    		  cb_correction11 = new JComboBox();
    		  cb_correction11.addItem("non");
    		  cb_correction11.addItem("trouées assez larges");
    		  cb_correction11.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction11);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat2() 
    	   {
    		  cb_correction12 = new JComboBox();
    		  cb_correction12.addItem("non");
    		  cb_correction12.addItem("trouées assez larges");
    		  cb_correction12.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction12);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat3() 
    	   {
    		  cb_correction13 = new JComboBox();
    		  cb_correction13.addItem("non");
    		  cb_correction13.addItem("trouées assez larges");
    		  cb_correction13.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction13);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat4() 
    	   {
    		  cb_correction14 = new JComboBox();
    		  cb_correction14.addItem("non");
    		  cb_correction14.addItem("trouées assez larges");
    		  cb_correction14.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction14);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat5() 
    	   {
    		  cb_correction15 = new JComboBox();
    		  cb_correction15.addItem("non");
    		  cb_correction15.addItem("trouées assez larges");
    		  cb_correction15.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction15);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat6() 
    	   {
    		  cb_correction16 = new JComboBox();
    		  cb_correction16.addItem("non");
    		  cb_correction16.addItem("trouées assez larges");
    		  cb_correction16.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction16);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat7() 
    	   {
    		  cb_correction17 = new JComboBox();
    		  cb_correction17.addItem("non");
    		  cb_correction17.addItem("trouées assez larges");
    		  cb_correction17.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction17);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat8() 
    	   {
    		  cb_correction18 = new JComboBox();
    		  cb_correction18.addItem("non");
    		  cb_correction18.addItem("trouées assez larges");
    		  cb_correction18.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction18);
    	       
    	      return p;
    	   }
    	   
    	   
    	   
    	   
    	   public JPanel getSystemPanelBut1h() 
    	   {
    		   cb_correction21_h= new JComboBox();
    		   cb_correction21_h.addItem("non");
    		   cb_correction21_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction21_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction21_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut2h() 
    	   {
    		   cb_correction22_h= new JComboBox();
    		   cb_correction22_h.addItem("non");
    		   cb_correction22_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction22_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction22_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut3h() 
    	   {
    		   cb_correction23_h= new JComboBox();
    		   cb_correction23_h.addItem("non");
    		   cb_correction23_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction23_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction23_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut4h() 
    	   {
    		   cb_correction24_h= new JComboBox();
    		   cb_correction24_h.addItem("non");
    		   cb_correction24_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction24_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction24_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut5h() 
    	   {
    		   cb_correction25_h= new JComboBox();
    		   cb_correction25_h.addItem("non");
    		   cb_correction25_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction25_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction25_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut6h() 
    	   {
    		   cb_correction26_h= new JComboBox();
    		   cb_correction26_h.addItem("non");
    		   cb_correction26_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction26_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction26_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut7h() 
    	   {
    		   cb_correction27_h= new JComboBox();
    		   cb_correction27_h.addItem("non");
    		   cb_correction27_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction27_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction27_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut8h() 
    	   {
    		   cb_correction28_h= new JComboBox();
    		   cb_correction28_h.addItem("non");
    		   cb_correction28_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction28_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction28_h);
    		       
    		   return p;
    	   }
    	   
    	   
    	   
    	   
    	   public JPanel getSystemPanelBut1d()
    	   {
    		   cb_correction21_d= new JComboBox();
    		   cb_correction21_d.addItem("non");
    		   cb_correction21_d.addItem("distance butte < 150m");
    		   cb_correction21_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction21_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut2d()
    	   {
    		   cb_correction22_d= new JComboBox();
    		   cb_correction22_d.addItem("non");
    		   cb_correction22_d.addItem("distance butte < 150m");
    		   cb_correction22_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction22_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut3d()
    	   {
    		   cb_correction23_d= new JComboBox();
    		   cb_correction23_d.addItem("non");
    		   cb_correction23_d.addItem("distance butte < 150m");
    		   cb_correction23_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction23_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut4d()
    	   {
    		   cb_correction24_d= new JComboBox();
    		   cb_correction24_d.addItem("non");
    		   cb_correction24_d.addItem("distance butte < 150m");
    		   cb_correction24_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction24_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut5d()
    	   {
    		   cb_correction25_d= new JComboBox();
    		   cb_correction25_d.addItem("non");
    		   cb_correction25_d.addItem("distance butte < 150m");
    		   cb_correction25_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction25_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut6d()
    	   {
    		   cb_correction26_d= new JComboBox();
    		   cb_correction26_d.addItem("non");
    		   cb_correction26_d.addItem("distance butte < 150m");
    		   cb_correction26_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction26_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut7d()
    	   {
    		   cb_correction27_d= new JComboBox();
    		   cb_correction27_d.addItem("non");
    		   cb_correction27_d.addItem("distance butte < 150m");
    		   cb_correction27_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction27_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut8d()
    	   {
    		   cb_correction28_d= new JComboBox();
    		   cb_correction28_d.addItem("non");
    		   cb_correction28_d.addItem("distance butte < 150m");
    		   cb_correction28_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction28_d);
    		       
    		   return p;
    	   }
    	   
    	   	   
    	   public void setMyConstraints(GridBagConstraints c, int gridx, int gridy, int anchor) 
    	   {
    	      c.gridx = gridx;
    	      c.gridy = gridy;
    	      c.anchor = anchor;
    	   }
    	}  
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   class StateListener implements ActionListener
    	   {
    		   
    		   public void actionPerformed(ActionEvent e) 
               {
    			  /* JCheckBox toto = new JCheckBox();
    			   try
    			   {
    				   toto = ((JCheckBox)e.getSource());
    			   }
    			   catch(Exception ex)
    			   {
    				   System.out.println("ERREUR");
    			   }
    			   */
    			   if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route1=1;
    				   System.out.println("1");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route1=0;
    				   System.out.println("0");
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route2=1;
    				   System.out.println("2");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route2=0;
    				   System.out.println("0");
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route3=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route3=0;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route4=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route4=0 ;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route5=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route5=0 ;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route6=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route6=0;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route7=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route7=0;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route8=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route8=0;
    			   }
    				   
                   
               }
           }

  16. #16
    Membre du Club
    Profil pro
    Inscrit en
    Juillet 2008
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juillet 2008
    Messages : 47
    Points : 50
    Points
    50
    Par défaut
    Citation Envoyé par wilfryjules Voir le message
    Concernant cette erreur de CastException, je l'ai résolue.

    Je suis dslé de vous avoir dérangé pour ça!! mais je panique très vite !

    Mais là je pense avoir une erreur EXCEPTIONNELLE !!

    De la SORCELLERIE !

    Voici donc en quelques lignes le problème:

    Lorsque je fais des interfaces graphiques, j'ai l'habitude, de tout décomposer en JPanels.

    Ainsi j'instancie chaque JTextField dans une fonction qui renvoie un JPanel.
    C'est ainsi que jtf_dist1 a son propre petit Panel doré, contenu dans la fonction getFieldPanelDist1()
    Je remets ces JPanel dans un autre JPanel principal....

    jusque à présent je ne rencontrais aucun problème puis subitement il n'apprécie pas que j'instancie jtf_dist1 = new JTextField(3).

    Lors de la compilation, ça m'ouvre 36 000 fenêtres en plus de la page d'accueil.
    Le pire dans tout ça, c'est que pour les autres JTextField ça ne plante pas!

    Voici mon code:
    (TOUT N'EST PAS IMPORTANT MAIS J'AI ECRIT EN ROUGE LES ENDROITS OU SE TROUVE jtf_dist1)


    Merci pour votre aide elle me serait fort utile !

    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
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    637
    638
    639
    640
    641
    642
    643
    644
    645
    646
    647
    648
    649
    650
    651
    652
    653
    654
    655
    656
    657
    658
    659
    660
    661
    662
    663
    664
    665
    666
    667
    668
    669
    670
    671
    672
    673
    674
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    686
    687
    688
    689
    690
    691
    692
    693
    694
    695
    696
    697
    698
    699
    700
    701
    702
    703
    704
    705
    706
    707
    708
    709
    710
    711
    712
    713
    714
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
    727
    728
    729
    730
    731
    732
    733
    734
    735
    736
    737
    738
    739
    740
    741
    742
    743
    744
    745
    746
    747
    748
    749
    750
    751
    752
    753
    754
    755
    756
    757
    758
    759
    760
    761
    762
    763
    764
    765
    766
    767
    768
    769
    770
    771
    772
    773
    774
    775
    776
    777
    778
    779
    780
    781
    782
    783
    784
    785
    786
    787
    788
    789
    790
    791
    792
    793
    794
    795
    796
    797
    798
    799
    800
    801
    802
    803
    804
    805
    806
    807
    808
    809
    810
    811
    812
    813
    814
    815
    816
    817
    818
    819
    820
    821
    822
    823
    824
    825
    826
    827
    828
    829
    830
    831
    832
    833
    834
    835
    836
    837
    838
    839
    840
    841
    842
    843
    844
    845
    846
    847
    848
    849
    850
    851
    852
    853
    854
    855
    856
    857
    858
    859
    860
    861
    862
    863
    864
    865
    866
    867
    868
    869
    870
    871
    872
    873
    874
    875
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
    887
    888
    889
    890
    891
    892
    893
    894
    895
    896
    897
    898
    899
    900
    901
    902
    903
    904
    905
    906
    907
    908
    909
    910
    911
    912
    913
    914
    915
    916
    917
    918
    919
    920
    921
    922
    923
    924
    925
    926
    927
    928
    929
    930
    931
    932
    933
    934
    935
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
    947
    948
    949
    950
    951
    952
    953
    954
    955
    956
    957
    958
    959
    960
    961
    962
    963
    964
    965
    966
    967
    968
    969
    970
    971
    972
    973
    974
    975
    976
    977
    978
    979
    980
    981
    982
    983
    984
    985
    986
    987
    988
    989
    990
    991
    992
    993
    994
    995
    996
    997
    998
    999
    1000
    1001
    1002
    1003
    1004
    1005
    1006
    1007
    1008
    1009
    1010
    1011
    1012
    1013
    1014
    1015
    1016
    1017
    1018
    1019
    1020
    1021
    1022
    1023
    1024
    1025
    1026
    1027
    1028
    1029
    1030
    1031
    1032
    1033
    1034
    1035
    1036
    1037
    1038
    1039
    1040
    1041
    1042
    1043
    1044
    1045
    1046
    1047
    1048
    1049
    1050
    1051
    1052
    1053
    1054
    1055
    1056
    1057
    1058
    1059
    1060
    1061
    1062
    1063
    1064
    1065
    1066
    1067
    1068
    1069
    1070
    1071
    1072
    1073
    1074
    1075
    1076
    1077
    1078
    1079
    1080
    1081
    1082
    1083
    1084
    1085
    1086
    1087
    1088
    1089
    1090
    1091
    1092
    1093
    1094
    1095
    1096
    1097
    1098
    1099
    1100
    1101
    1102
    1103
    1104
    1105
    1106
    1107
    1108
    1109
    1110
    1111
    1112
    1113
    1114
    1115
    1116
    1117
    1118
    1119
    1120
    1121
    1122
    1123
    1124
    1125
    1126
    1127
    1128
    1129
    1130
    1131
    1132
    1133
    1134
    1135
    1136
    1137
    1138
    1139
    1140
    1141
    1142
    1143
    1144
    1145
    1146
    1147
    1148
    1149
    1150
    1151
    1152
    1153
    1154
    1155
    1156
    1157
    1158
    1159
    1160
    1161
    1162
    1163
    1164
    1165
    1166
    1167
    1168
    1169
    1170
    1171
    1172
    1173
    1174
    1175
    1176
    1177
    1178
    1179
    1180
    1181
    1182
    1183
    1184
    1185
    1186
    1187
    1188
    1189
    1190
    1191
    1192
    1193
    1194
    1195
    1196
    1197
    1198
    1199
    1200
    1201
    1202
    1203
    1204
    1205
    1206
    1207
    1208
    1209
    1210
    1211
    1212
    1213
    1214
    1215
    1216
    1217
    1218
    1219
    1220
    1221
    1222
    1223
    1224
    1225
    1226
    1227
    1228
    1229
    1230
    1231
    1232
    1233
    1234
    1235
    1236
    1237
    1238
    1239
    1240
    1241
    1242
    1243
    1244
    1245
    1246
    1247
    1248
    1249
    1250
    1251
    1252
    1253
    1254
    1255
    1256
    1257
    1258
    1259
    1260
    1261
    1262
    1263
    1264
    1265
    1266
    1267
    1268
    1269
    1270
    1271
    1272
    1273
    1274
    1275
    1276
    1277
    1278
    1279
    1280
    1281
    1282
    1283
    1284
    1285
    1286
    1287
    1288
    1289
    1290
    1291
    1292
    1293
    1294
    1295
    1296
    1297
    1298
    1299
    1300
    1301
    1302
    1303
    1304
    1305
    1306
    1307
    1308
    1309
    1310
    1311
    1312
    1313
    1314
    1315
    1316
    1317
    1318
    1319
    1320
    1321
    1322
    1323
    1324
    1325
    1326
    1327
    1328
    1329
    1330
    
    
    
    
    
    
    	public class ConfigTor extends JPanel
    	{
    		
    	   private JCheckBox jcb_1;
    	   private JComboBox cb_categorie1;
    	   private JTextField jtf_dist1;
    	   private JComboBox cb_correction11;
    	   private JComboBox cb_correction21_h;
    	   private JComboBox cb_correction21_d;
    	   
    	   private JCheckBox jcb_2;
    	   private JComboBox cb_categorie2;
    	   private JTextField jtf_dist2;
    	   private JComboBox cb_correction12;
    	   private JComboBox cb_correction22_h;
    	   private JComboBox cb_correction22_d;
    	   
    	   private JCheckBox jcb_3;
    	   private JComboBox cb_categorie3;
    	   private JTextField jtf_dist3;
    	   private JComboBox cb_correction13;
    	   private JComboBox cb_correction23_h;
    	   private JComboBox cb_correction23_d;
    	   
    	   private JCheckBox jcb_4;
    	   private JComboBox cb_categorie4;
    	   private JTextField jtf_dist4;
    	   private JComboBox cb_correction14;
    	   private JComboBox cb_correction24_h;
    	   private JComboBox cb_correction24_d;
    	   
    	   private JCheckBox jcb_5;
    	   private JComboBox cb_categorie5;
    	   private JTextField jtf_dist5;
    	   private JComboBox cb_correction15;
    	   private JComboBox cb_correction25_h;
    	   private JComboBox cb_correction25_d;
    	   
    	   private JCheckBox jcb_6;
    	   private JComboBox cb_categorie6;
    	   private JTextField jtf_dist6;
    	   private JComboBox cb_correction16;
    	   private JComboBox cb_correction26_h;
    	   private JComboBox cb_correction26_d;
    	   
    	   private JCheckBox jcb_7;
    	   private JComboBox cb_categorie7;
    	   private JTextField jtf_dist7;
    	   private JComboBox cb_correction17;
    	   private JComboBox cb_correction27_h;
    	   private JComboBox cb_correction27_d;
    	   
    	   private JCheckBox jcb_8;
    	   private JComboBox cb_categorie8;
    	   private JTextField jtf_dist8;
    	   private JComboBox cb_correction18;
    	   private JComboBox cb_correction28_h;
    	   private JComboBox cb_correction28_d; 
    	   
    	  
    	   
    	   public JCheckBox getTOR_jcb1()
    	   {
    		   return jcb_1;
    	   }
    	   
    	   public JCheckBox getTOR_jcb2()
    	   {
    		   return jcb_2;
    	   }
    	   
    	   public JCheckBox getTOR_jcb3()
    	   {
    		   return jcb_3;
    	   }
    	   
    	   public JCheckBox getTOR_jcb4()
    	   {
    		   return jcb_4;
    	   }
    	   
    	   public JCheckBox getTOR_jcb5()
    	   {
    		   return jcb_5;
    	   }
    	   
    	   public JCheckBox getTOR_jcb6()
    	   {
    		   return jcb_6;
    	   }
    	   
    	   public JCheckBox getTOR_jcb7()
    	   {
    		   return jcb_7;
    	   }
    	   
    	   public JCheckBox getTOR_jcb8()
    	   {
    		   return jcb_8;
    	   }
    	   
    	   
    	   // ICI
    	   public JTextField getTOR_jtf_dist1()
    	   {
    		   return jtf_dist1;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist2()
    	   {
    		   return jtf_dist2;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist3()
    	   {
    		   return jtf_dist3;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist4()
    	   {
    		   return jtf_dist4;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist5()
    	   {
    		   return jtf_dist5;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist6()
    	   {
    		   return jtf_dist6;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist7()
    	   {
    		   return jtf_dist7;
    	   }
    	   
    	   public JTextField getTOR_jtf_dist8()
    	   {
    		   return jtf_dist8;
    	   }
    	   
    	   
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_categorie1()
    	   {
    		   return cb_categorie1;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie2()
    	   {
    		   return cb_categorie2;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie3()
    	   {
    		   return cb_categorie3;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie4()
    	   {
    		   return cb_categorie4;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie5()
    	   {
    		   return cb_categorie5;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie6()
    	   {
    		   return cb_categorie6;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie7()
    	   {
    		   return cb_categorie7;
    	   }
    	   
    	   public JComboBox getTOR_cb_categorie8()
    	   {
    		   return cb_categorie8;
    	   }
    	   
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction11()
    	   {
    		   return cb_correction11;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction21_h()
    	   {
    		   return cb_correction21_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction21_d()
    	   {
    		   return cb_correction21_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction12()
    	   {
    		   return cb_correction12;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction22_h()
    	   {
    		   return cb_correction22_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction22_d()
    	   {
    		   return cb_correction22_d;
    	   }
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction13()
    	   {
    		   return cb_correction13;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction23_h()
    	   {
    		   return cb_correction23_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction23_d()
    	   {
    		   return cb_correction23_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction14()
    	   {
    		   return cb_correction14;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction24_h()
    	   {
    		   return cb_correction24_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction24_d()
    	   {
    		   return cb_correction24_d;
    	   }
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction15()
    	   {
    		   return cb_correction15;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction25_h()
    	   {
    		   return cb_correction25_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction25_d()
    	   {
    		   return cb_correction25_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction16()
    	   {
    		   return cb_correction16;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction26_h()
    	   {
    		   return cb_correction26_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction26_d()
    	   {
    		   return cb_correction26_d;
    	   }
    	   
    	   
    	   public JComboBox getTOR_cb_correction17()
    	   {
    		   return cb_correction17;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction27_h()
    	   {
    		   return cb_correction27_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction27_d()
    	   {
    		   return cb_correction27_d;
    	   }
    	   
    	   
    	   
    	   public JComboBox getTOR_cb_correction18()
    	   {
    		   return cb_correction18;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction28_h()
    	   {
    		   return cb_correction28_h;
    	   }
    	   
    	   public JComboBox getTOR_cb_correction28_d()
    	   {
    		   return cb_correction28_d;
    	   }
    	   
    	   
    	   
    	   		
    	   
    	   
    	   public ConfigTor()
    	   {
    		  
    		 		
    		  this.setBorder(BorderFactory.createTitledBorder("Configuration de la maison"));
    	      this.setLayout(new GridBagLayout());
    	      GridBagConstraints c = new GridBagConstraints();
    	      setMyConstraints(c,0,0,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel1(),c);
    	      setMyConstraints(c,0,1,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel2(),c);
    	      setMyConstraints(c,0,2,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel3(),c);
    	      setMyConstraints(c,0,3,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel4(),c);
    	      setMyConstraints(c,0,4,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel5(),c);
    	      setMyConstraints(c,0,5,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel6(),c);
    	      setMyConstraints(c,0,6,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel7(),c);
    	      setMyConstraints(c,0,7,GridBagConstraints.CENTER);
    	      this.add(getFieldPanel8(),c);
    	      
    	   }
    	   	   
    		   
    	      
    	   public JPanel getFieldPanel1() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	          
    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	       
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb1() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat1(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    //ICI	      
    p.add(getFieldPanelDist1(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat1(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut1h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut1d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	    
    	   public JPanel getFieldPanel2() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	       
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb2() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat2(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist2(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat2(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut2h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut2d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel3() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	       
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb3() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat3(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist3(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat3(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut3h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut3d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel4() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb4() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat4(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist4(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat4(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut4h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut4d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb5() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat5(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist5(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat5(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut5h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut5d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel6() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	     
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb6() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat6(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist6(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat6(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut6h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut6d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel7() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb7() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat7(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist7(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat7(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut7h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut7d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanel8() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	    	      
    	      GridBagConstraints c = new GridBagConstraints();
    	     
    	      
    	      setMyConstraints(c,2,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelJcb8() ,c);
    	      setMyConstraints(c,3,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Catégorie:  "),c);
    	      setMyConstraints(c,4,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelCat8(),c);
    	      setMyConstraints(c,5,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Distance(m):  "),c);
    	      setMyConstraints(c,6,0,GridBagConstraints.WEST);
    	      p.add(getFieldPanelDist8(),c);
    	      setMyConstraints(c,7,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Bâtiments:  "),c);
    	      setMyConstraints(c,8,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBat8(),c);
    	      setMyConstraints(c,9,0,GridBagConstraints.WEST);
    	      p.add(new JLabel("Butte de terre: "),c);
    	      setMyConstraints(c,10,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut8h(),c);
    	      setMyConstraints(c,11,0,GridBagConstraints.WEST);
    	      p.add(getSystemPanelBut8d(),c);
    	     	     
    	      return p;
    	   }
    	   
    	   
    	   public JPanel getFieldPanelJcb1() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_1 = new JCheckBox("route1");
    	      jcb_1.addActionListener(new StateListener());
    	      jcb_1.setSelected(false);
    	      p.add(jcb_1);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb2() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_2 = new JCheckBox("route2");
    	      jcb_2.addActionListener(new StateListener());
    	      jcb_2.setSelected(false);
    	      p.add(jcb_2);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb3() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_3 = new JCheckBox("route3");
    	      jcb_3.addActionListener(new StateListener());
    	      jcb_3.setSelected(false);
    	      p.add(jcb_3);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb4() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_4 = new JCheckBox("route4");
    	      jcb_4.addActionListener(new StateListener());
    	      jcb_4.setSelected(false);
    	      p.add(jcb_4);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb5() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_5 = new JCheckBox("route5");
    	      jcb_5.addActionListener(new StateListener());
    	      jcb_5.setSelected(false);
    	      p.add(jcb_5);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb6() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_6 = new JCheckBox("route6");
    	      jcb_6.addActionListener(new StateListener());
    	      jcb_6.setSelected(false);
    	      p.add(jcb_6);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb7() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_7 = new JCheckBox("route7");
    	      jcb_7.addActionListener(new StateListener());
    	      jcb_7.setSelected(false);
    	      p.add(jcb_7);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelJcb8() 
    	   {
    	      JPanel p = new JPanel(new GridBagLayout());
    	      jcb_8 = new JCheckBox("route8");
    	      jcb_8.addActionListener(new StateListener());
    	      jcb_8.setSelected(false);
    	      p.add(jcb_8);
    	      return p;
    	   }
    	  	   
    	   
    	   public JPanel getFieldPanelDist1() 
    	   {
    		   JPanel p = new JPanel(new GridBagLayout());
    /** CETTE LIGNE FAIT TOUT PLANTER **/
    		   jtf_dist1 = new JTextField(3);
    	       p.add(jtf_dist1);
    	       return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist2() 
    	   {
    		   JPanel p = new JPanel(new GridBagLayout());
    		   jtf_dist2 = new JTextField(3);
    	       p.add(jtf_dist2);
    	       return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist3() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist3 = new JTextField(3);
    	      p.add(jtf_dist3);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist4() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist4 = new JTextField(3);
    	      p.add(jtf_dist4);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist5() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist5 = new JTextField(3);
    	      p.add(jtf_dist5);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist6() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist6 = new JTextField(3);
    	      p.add(jtf_dist6);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist7() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    	      jtf_dist7 = new JTextField(3);
    	      p.add(jtf_dist7);
    	      return p;
    	   }
    	   
    	   public JPanel getFieldPanelDist8() 
    	   {
    		  JPanel p = new JPanel(new GridBagLayout());
    		  jtf_dist8 = new JTextField(3);
    	      p.add(jtf_dist8);
    	      return p;
    	   }
    	   
    
    
    
    	   
    	  	   
    	   
    	   public JPanel getSystemPanelCat1() 
    	   {
    		  cb_categorie1= new JComboBox();
    		  cb_categorie1.addItem("1");
    	      cb_categorie1.addItem("2");
    	      cb_categorie1.addItem("3");
    	      cb_categorie1.addItem("4");
    	      cb_categorie1.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie1);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat2() 
    	   {
    		  cb_categorie2= new JComboBox();
    		  cb_categorie2.addItem("1");
    	      cb_categorie2.addItem("2");
    	      cb_categorie2.addItem("3");
    	      cb_categorie2.addItem("4");
    	      cb_categorie2.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie2);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat3() 
    	   {
    		  cb_categorie3= new JComboBox();
    		  cb_categorie3.addItem("1");
    	      cb_categorie3.addItem("2");
    	      cb_categorie3.addItem("3");
    	      cb_categorie3.addItem("4");
    	      cb_categorie3.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie3);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat4() 
    	   {
    		  cb_categorie4= new JComboBox();
    		  cb_categorie4.addItem("1");
    	      cb_categorie4.addItem("2");
    	      cb_categorie4.addItem("3");
    	      cb_categorie4.addItem("4");
    	      cb_categorie4.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie4);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat5() 
    	   {
    		  cb_categorie5= new JComboBox();
    		  cb_categorie5.addItem("1");
    	      cb_categorie5.addItem("2");
    	      cb_categorie5.addItem("3");
    	      cb_categorie5.addItem("4");
    	      cb_categorie5.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie5);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat6() 
    	   {
    		  cb_categorie6= new JComboBox();
    		  cb_categorie6.addItem("1");
    	      cb_categorie6.addItem("2");
    	      cb_categorie6.addItem("3");
    	      cb_categorie6.addItem("4");
    	      cb_categorie6.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie6);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat7() 
    	   {
    		  cb_categorie7= new JComboBox();
    		  cb_categorie7.addItem("1");
    	      cb_categorie7.addItem("2");
    	      cb_categorie7.addItem("3");
    	      cb_categorie7.addItem("4");
    	      cb_categorie7.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie7);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelCat8() 
    	   {
    		  cb_categorie8= new JComboBox();
    		  cb_categorie8.addItem("1");
    	      cb_categorie8.addItem("2");
    	      cb_categorie8.addItem("3");
    	      cb_categorie8.addItem("4");
    	      cb_categorie8.addItem("5");
    	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_categorie8);
    	       
    	      return p;
    	   }
    	   
    	   	   
    	   public JPanel getSystemPanelBat1() 
    	   {
    		  cb_correction11 = new JComboBox();
    		  cb_correction11.addItem("non");
    		  cb_correction11.addItem("trouées assez larges");
    		  cb_correction11.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction11);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat2() 
    	   {
    		  cb_correction12 = new JComboBox();
    		  cb_correction12.addItem("non");
    		  cb_correction12.addItem("trouées assez larges");
    		  cb_correction12.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction12);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat3() 
    	   {
    		  cb_correction13 = new JComboBox();
    		  cb_correction13.addItem("non");
    		  cb_correction13.addItem("trouées assez larges");
    		  cb_correction13.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction13);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat4() 
    	   {
    		  cb_correction14 = new JComboBox();
    		  cb_correction14.addItem("non");
    		  cb_correction14.addItem("trouées assez larges");
    		  cb_correction14.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction14);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat5() 
    	   {
    		  cb_correction15 = new JComboBox();
    		  cb_correction15.addItem("non");
    		  cb_correction15.addItem("trouées assez larges");
    		  cb_correction15.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction15);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat6() 
    	   {
    		  cb_correction16 = new JComboBox();
    		  cb_correction16.addItem("non");
    		  cb_correction16.addItem("trouées assez larges");
    		  cb_correction16.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction16);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat7() 
    	   {
    		  cb_correction17 = new JComboBox();
    		  cb_correction17.addItem("non");
    		  cb_correction17.addItem("trouées assez larges");
    		  cb_correction17.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction17);
    	       
    	      return p;
    	   }
    	   
    	   public JPanel getSystemPanelBat8() 
    	   {
    		  cb_correction18 = new JComboBox();
    		  cb_correction18.addItem("non");
    		  cb_correction18.addItem("trouées assez larges");
    		  cb_correction18.addItem("sans ou rares trouées");
    		   	     	           
    	      JPanel p = new JPanel(new GridBagLayout());
    	      p.add(cb_correction18);
    	       
    	      return p;
    	   }
    	   
    	   
    	   
    	   
    	   public JPanel getSystemPanelBut1h() 
    	   {
    		   cb_correction21_h= new JComboBox();
    		   cb_correction21_h.addItem("non");
    		   cb_correction21_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction21_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction21_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut2h() 
    	   {
    		   cb_correction22_h= new JComboBox();
    		   cb_correction22_h.addItem("non");
    		   cb_correction22_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction22_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction22_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut3h() 
    	   {
    		   cb_correction23_h= new JComboBox();
    		   cb_correction23_h.addItem("non");
    		   cb_correction23_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction23_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction23_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut4h() 
    	   {
    		   cb_correction24_h= new JComboBox();
    		   cb_correction24_h.addItem("non");
    		   cb_correction24_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction24_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction24_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut5h() 
    	   {
    		   cb_correction25_h= new JComboBox();
    		   cb_correction25_h.addItem("non");
    		   cb_correction25_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction25_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction25_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut6h() 
    	   {
    		   cb_correction26_h= new JComboBox();
    		   cb_correction26_h.addItem("non");
    		   cb_correction26_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction26_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction26_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut7h() 
    	   {
    		   cb_correction27_h= new JComboBox();
    		   cb_correction27_h.addItem("non");
    		   cb_correction27_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction27_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction27_h);
    		       
    		   return p;
    	   }
    	   
    	   public JPanel getSystemPanelBut8h() 
    	   {
    		   cb_correction28_h= new JComboBox();
    		   cb_correction28_h.addItem("non");
    		   cb_correction28_h.addItem("2m < hauteur butte < 4m");
    		   cb_correction28_h.addItem("4m < hauteur butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction28_h);
    		       
    		   return p;
    	   }
    	   
    	   
    	   
    	   
    	   public JPanel getSystemPanelBut1d()
    	   {
    		   cb_correction21_d= new JComboBox();
    		   cb_correction21_d.addItem("non");
    		   cb_correction21_d.addItem("distance butte < 150m");
    		   cb_correction21_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction21_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut2d()
    	   {
    		   cb_correction22_d= new JComboBox();
    		   cb_correction22_d.addItem("non");
    		   cb_correction22_d.addItem("distance butte < 150m");
    		   cb_correction22_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction22_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut3d()
    	   {
    		   cb_correction23_d= new JComboBox();
    		   cb_correction23_d.addItem("non");
    		   cb_correction23_d.addItem("distance butte < 150m");
    		   cb_correction23_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction23_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut4d()
    	   {
    		   cb_correction24_d= new JComboBox();
    		   cb_correction24_d.addItem("non");
    		   cb_correction24_d.addItem("distance butte < 150m");
    		   cb_correction24_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction24_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut5d()
    	   {
    		   cb_correction25_d= new JComboBox();
    		   cb_correction25_d.addItem("non");
    		   cb_correction25_d.addItem("distance butte < 150m");
    		   cb_correction25_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction25_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut6d()
    	   {
    		   cb_correction26_d= new JComboBox();
    		   cb_correction26_d.addItem("non");
    		   cb_correction26_d.addItem("distance butte < 150m");
    		   cb_correction26_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction26_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut7d()
    	   {
    		   cb_correction27_d= new JComboBox();
    		   cb_correction27_d.addItem("non");
    		   cb_correction27_d.addItem("distance butte < 150m");
    		   cb_correction27_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction27_d);
    		       
    		   return p;
    	   }
    	   
    
    	   public JPanel getSystemPanelBut8d()
    	   {
    		   cb_correction28_d= new JComboBox();
    		   cb_correction28_d.addItem("non");
    		   cb_correction28_d.addItem("distance butte < 150m");
    		   cb_correction28_d.addItem("150m < distance butte");
    		     
    		   JPanel p = new JPanel(new GridBagLayout());
    		   p.add(cb_correction28_d);
    		       
    		   return p;
    	   }
    	   
    	   	   
    	   public void setMyConstraints(GridBagConstraints c, int gridx, int gridy, int anchor) 
    	   {
    	      c.gridx = gridx;
    	      c.gridy = gridy;
    	      c.anchor = anchor;
    	   }
    	}  
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   
    	   class StateListener implements ActionListener
    	   {
    		   
    		   public void actionPerformed(ActionEvent e) 
               {
    			  /* JCheckBox toto = new JCheckBox();
    			   try
    			   {
    				   toto = ((JCheckBox)e.getSource());
    			   }
    			   catch(Exception ex)
    			   {
    				   System.out.println("ERREUR");
    			   }
    			   */
    			   if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route1=1;
    				   System.out.println("1");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route1") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route1=0;
    				   System.out.println("0");
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route2=1;
    				   System.out.println("2");
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route2") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route2=0;
    				   System.out.println("0");
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route3=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route3") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route3=0;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route4=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route4") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route4=0 ;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route5=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route5") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route5=0 ;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route6=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route6") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route6=0;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route7=1;
    			   }
    			   else if(  (((JCheckBox)e.getSource()).getText()=="route7") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route7=0;
    			   }
    			   
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==true)                 ) 
    			   {
    				   flag_route8=1;
    			   }
    			   if(  (((JCheckBox)e.getSource()).getText()=="route8") &&  (((JCheckBox)e.getSource()).isSelected()==false)                 ) 
    			   {
    				   flag_route8=0;
    			   }
    				   
                   
               }
           }
    C'est pour éviter ce genres de problème que je préfère déporter le code d'un panel dans un objet qui étend JPanel. cela me permet de mieux isoler le code et le tester plus facilement. après je ne sais pas si c'est la meilleur manière mais au moins cela évite d'avoir une fenêtre dans laquelle on a 3 milliards de composants où l'on a du mal a voir rapidement où ils sont

  17. #17
    Membre régulier
    Homme Profil pro
    Ingénieur intégration
    Inscrit en
    Juin 2011
    Messages
    248
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Ingénieur intégration
    Secteur : Industrie

    Informations forums :
    Inscription : Juin 2011
    Messages : 248
    Points : 74
    Points
    74
    Par défaut
    OK, merci mais ça m'aide pas à résoudre mon problème !

    Bon je vais essayer...

Discussions similaires

  1. Réponses: 4
    Dernier message: 26/04/2011, 23h29
  2. GXT Grid+erreur java.lang.ClassCastException
    Par cyranno dans le forum GWT et Vaadin
    Réponses: 1
    Dernier message: 03/11/2010, 06h53
  3. [WebService Java] Erreur : java.lang.ClassCastException
    Par alpha25 dans le forum Web & réseau
    Réponses: 3
    Dernier message: 13/03/2008, 14h40
  4. erreur java java.lang.ClassCastException
    Par yLaplace dans le forum Langage
    Réponses: 1
    Dernier message: 14/04/2007, 18h17
  5. Réponses: 16
    Dernier message: 10/01/2006, 22h02

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