Parcourir la source

Si tu lis ce message, c'est que tu sait lire.

PCYoshi il y a 9 ans
Parent
révision
55674e6636

+ 387
- 80
java/.idea/workspace.xml Voir le fichier

@@ -7,15 +7,13 @@
7 7
   </component>
8 8
   <component name="ChangeListManager">
9 9
     <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
10
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" />
11
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/GestionBddDAO/ConfigBDD.java" afterPath="$PROJECT_DIR$/src/GestionBddDAO/ConfigBDD.java" />
10
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/GestionErreurs/BDDException.java" />
11
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/MainAdminBddBurgerQuizz.class" afterPath="$PROJECT_DIR$/out/production/java/MainAdminBddBurgerQuizz.class" />
12 12
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java" afterPath="$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java" />
13
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java" />
14 13
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/GestionBddDAO/GestionCategories.java" afterPath="$PROJECT_DIR$/src/GestionBddDAO/GestionCategories.java" />
15 14
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/GestionBddDAO/GestionQuestions.java" afterPath="$PROJECT_DIR$/src/GestionBddDAO/GestionQuestions.java" />
16 15
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/GestionBddDAO/GestionReponses.java" afterPath="$PROJECT_DIR$/src/GestionBddDAO/GestionReponses.java" />
17 16
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" />
18
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java" afterPath="$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java" />
19 17
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
20 18
     </list>
21 19
     <ignored path="java.iws" />
@@ -38,11 +36,42 @@
38 36
   </component>
39 37
   <component name="FileEditorManager">
40 38
     <leaf>
41
-      <file leaf-file-name="Bouton.java" pinned="false" current-in-tab="true">
42
-        <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java">
39
+      <file leaf-file-name="InterfacePrincipale.java" pinned="false" current-in-tab="false">
40
+        <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java">
43 41
           <provider selected="true" editor-type-id="text-editor">
44
-            <state vertical-scroll-proportion="0.19428572">
45
-              <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="19" />
42
+            <state vertical-scroll-proportion="0.0">
43
+              <caret line="425" column="45" selection-start-line="425" selection-start-column="45" selection-end-line="425" selection-end-column="45" />
44
+              <folding>
45
+                <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
46
+                <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
47
+                <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
48
+                <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
49
+                <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
50
+                <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
51
+                <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
52
+                <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
53
+                <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
54
+                <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
55
+                <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
56
+                <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
57
+                <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
58
+                <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
59
+                <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
60
+                <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
61
+                <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
62
+                <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
63
+                <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
64
+                <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
65
+              </folding>
66
+            </state>
67
+          </provider>
68
+        </entry>
69
+      </file>
70
+      <file leaf-file-name="ConnexionBDD.java" pinned="false" current-in-tab="true">
71
+        <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java">
72
+          <provider selected="true" editor-type-id="text-editor">
73
+            <state vertical-scroll-proportion="0.6590258">
74
+              <caret line="107" column="5" selection-start-line="107" selection-start-column="5" selection-end-line="107" selection-end-column="5" />
46 75
               <folding />
47 76
             </state>
48 77
           </provider>
@@ -91,14 +120,18 @@
91 120
         <option value="$PROJECT_DIR$/src/Modele/Reponses.java" />
92 121
         <option value="$PROJECT_DIR$/src/Modele/ConfigBDD.java" />
93 122
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java" />
94
-        <option value="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" />
95 123
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" />
96 124
         <option value="$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java" />
97 125
         <option value="$PROJECT_DIR$/src/GestionBddDAO/ConfigBDD.java" />
98
-        <option value="$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java" />
126
+        <option value="$PROJECT_DIR$/src/InterfaceGraphique/BDDException.java" />
127
+        <option value="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" />
128
+        <option value="$PROJECT_DIR$/src/BDDException.java" />
129
+        <option value="$PROJECT_DIR$/src/TOTo.java" />
130
+        <option value="$PROJECT_DIR$/src/GestionErreurs/BDDException.java" />
99 131
         <option value="$PROJECT_DIR$/src/GestionBddDAO/GestionCategories.java" />
100 132
         <option value="$PROJECT_DIR$/src/GestionBddDAO/GestionQuestions.java" />
101 133
         <option value="$PROJECT_DIR$/src/GestionBddDAO/GestionReponses.java" />
134
+        <option value="$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java" />
102 135
       </list>
103 136
     </option>
104 137
   </component>
@@ -217,7 +250,6 @@
217 250
       <sortByType />
218 251
     </navigator>
219 252
     <panes>
220
-      <pane id="Scratches" />
221 253
       <pane id="Scope" />
222 254
       <pane id="ProjectPane">
223 255
         <subPane>
@@ -323,6 +355,24 @@
323 355
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
324 356
             </PATH_ELEMENT>
325 357
             <PATH_ELEMENT>
358
+              <option name="myItemId" value="GestionErreurs" />
359
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
360
+            </PATH_ELEMENT>
361
+          </PATH>
362
+          <PATH>
363
+            <PATH_ELEMENT>
364
+              <option name="myItemId" value="java" />
365
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
366
+            </PATH_ELEMENT>
367
+            <PATH_ELEMENT>
368
+              <option name="myItemId" value="java" />
369
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
370
+            </PATH_ELEMENT>
371
+            <PATH_ELEMENT>
372
+              <option name="myItemId" value="src" />
373
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
374
+            </PATH_ELEMENT>
375
+            <PATH_ELEMENT>
326 376
               <option name="myItemId" value="GestionBddDAO" />
327 377
               <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
328 378
             </PATH_ELEMENT>
@@ -330,6 +380,7 @@
330 380
         </subPane>
331 381
       </pane>
332 382
       <pane id="PackagesPane" />
383
+      <pane id="Scratches" />
333 384
     </panes>
334 385
   </component>
335 386
   <component name="PropertiesComponent">
@@ -357,6 +408,9 @@
357 408
     <key name="ExtractSuperBase.RECENT_KEYS">
358 409
       <recent name="" />
359 410
     </key>
411
+    <key name="CreateClassDialog.RecentsKey">
412
+      <recent name="" />
413
+    </key>
360 414
     <key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
361 415
       <recent name="GestionBddDAO" />
362 416
       <recent name="InterfaceGraphique" />
@@ -364,6 +418,135 @@
364 418
       <recent name="DialogBoxes" />
365 419
     </key>
366 420
   </component>
421
+  <component name="RestoreUpdateTree" date="Moments ago" ActionInfo="_Update">
422
+    <UpdatedFiles>
423
+      <FILE-GROUP>
424
+        <option name="myUpdateName" value="Updated from server" />
425
+        <option name="myStatusName" value="Changed on server" />
426
+        <option name="mySupportsDeletion" value="false" />
427
+        <option name="myCanBeAbsent" value="false" />
428
+        <option name="myId" value="CHANGED_ON_SERVER" />
429
+        <FILE-GROUP>
430
+          <option name="myUpdateName" value="Updated" />
431
+          <option name="myStatusName" value="Changed" />
432
+          <option name="mySupportsDeletion" value="false" />
433
+          <option name="myCanBeAbsent" value="false" />
434
+          <option name="myId" value="UPDATED" />
435
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../README.md</PATH>
436
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/api/model/class.connector.php</PATH>
437
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/index.htm</PATH>
438
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/js/game.js</PATH>
439
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/server/server.js</PATH>
440
+        </FILE-GROUP>
441
+        <FILE-GROUP>
442
+          <option name="myUpdateName" value="Created" />
443
+          <option name="myStatusName" value="Created" />
444
+          <option name="mySupportsDeletion" value="false" />
445
+          <option name="myCanBeAbsent" value="false" />
446
+          <option name="myId" value="CREATED" />
447
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/README.md</PATH>
448
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/assets/burgerquizz.png</PATH>
449
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/css/main.css</PATH>
450
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/js/multi.js</PATH>
451
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi.php</PATH>
452
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/params.cfg</PATH>
453
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/play.htm</PATH>
454
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/sql/CTITbq.sql</PATH>
455
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/sql/CTbq.sql</PATH>
456
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/sql/ITbq.sql</PATH>
457
+        </FILE-GROUP>
458
+        <FILE-GROUP>
459
+          <option name="myUpdateName" value="Deleted" />
460
+          <option name="myStatusName" value="Deleted" />
461
+          <option name="mySupportsDeletion" value="false" />
462
+          <option name="myCanBeAbsent" value="true" />
463
+          <option name="myId" value="REMOVED_FROM_REPOSITORY" />
464
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../sql/CTITbq.sql</PATH>
465
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../sql/CTbq.sql</PATH>
466
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../sql/ITbq.sql</PATH>
467
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/client/index.html</PATH>
468
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/client/js/game.js</PATH>
469
+        </FILE-GROUP>
470
+        <FILE-GROUP>
471
+          <option name="myUpdateName" value="Restored" />
472
+          <option name="myStatusName" value="Will be restored" />
473
+          <option name="mySupportsDeletion" value="false" />
474
+          <option name="myCanBeAbsent" value="false" />
475
+          <option name="myId" value="RESTORED" />
476
+        </FILE-GROUP>
477
+      </FILE-GROUP>
478
+      <FILE-GROUP>
479
+        <option name="myUpdateName" value="Modified" />
480
+        <option name="myStatusName" value="Modified" />
481
+        <option name="mySupportsDeletion" value="false" />
482
+        <option name="myCanBeAbsent" value="false" />
483
+        <option name="myId" value="MODIFIED" />
484
+      </FILE-GROUP>
485
+      <FILE-GROUP>
486
+        <option name="myUpdateName" value="Skipped" />
487
+        <option name="myStatusName" value="Skipped" />
488
+        <option name="mySupportsDeletion" value="false" />
489
+        <option name="myCanBeAbsent" value="false" />
490
+        <option name="myId" value="SKIPPED" />
491
+      </FILE-GROUP>
492
+      <FILE-GROUP>
493
+        <option name="myUpdateName" value="Merged with conflicts" />
494
+        <option name="myStatusName" value="Will be merged with conflicts" />
495
+        <option name="mySupportsDeletion" value="false" />
496
+        <option name="myCanBeAbsent" value="false" />
497
+        <option name="myId" value="MERGED_WITH_CONFLICTS" />
498
+      </FILE-GROUP>
499
+      <FILE-GROUP>
500
+        <option name="myUpdateName" value="Merged with tree conflicts" />
501
+        <option name="myStatusName" value="Merged with tree conflicts" />
502
+        <option name="mySupportsDeletion" value="false" />
503
+        <option name="myCanBeAbsent" value="false" />
504
+        <option name="myId" value="MERGED_WITH_TREE_CONFLICT" />
505
+      </FILE-GROUP>
506
+      <FILE-GROUP>
507
+        <option name="myUpdateName" value="Merged with property conflicts" />
508
+        <option name="myStatusName" value="Will be merged with property conflicts" />
509
+        <option name="mySupportsDeletion" value="false" />
510
+        <option name="myCanBeAbsent" value="false" />
511
+        <option name="myId" value="MERGED_WITH_PROPERTY_CONFLICT" />
512
+      </FILE-GROUP>
513
+      <FILE-GROUP>
514
+        <option name="myUpdateName" value="Merged" />
515
+        <option name="myStatusName" value="Will be merged" />
516
+        <option name="mySupportsDeletion" value="false" />
517
+        <option name="myCanBeAbsent" value="false" />
518
+        <option name="myId" value="MERGED" />
519
+      </FILE-GROUP>
520
+      <FILE-GROUP>
521
+        <option name="myUpdateName" value="Not in repository" />
522
+        <option name="myStatusName" value="Not in repository" />
523
+        <option name="mySupportsDeletion" value="true" />
524
+        <option name="myCanBeAbsent" value="false" />
525
+        <option name="myId" value="UNKNOWN" />
526
+      </FILE-GROUP>
527
+      <FILE-GROUP>
528
+        <option name="myUpdateName" value="Locally added" />
529
+        <option name="myStatusName" value="Locally added" />
530
+        <option name="mySupportsDeletion" value="false" />
531
+        <option name="myCanBeAbsent" value="false" />
532
+        <option name="myId" value="LOCALLY_ADDED" />
533
+      </FILE-GROUP>
534
+      <FILE-GROUP>
535
+        <option name="myUpdateName" value="Locally removed" />
536
+        <option name="myStatusName" value="Locally removed" />
537
+        <option name="mySupportsDeletion" value="false" />
538
+        <option name="myCanBeAbsent" value="false" />
539
+        <option name="myId" value="LOCALLY_REMOVED" />
540
+      </FILE-GROUP>
541
+      <FILE-GROUP>
542
+        <option name="myUpdateName" value="Switched" />
543
+        <option name="myStatusName" value="Switched" />
544
+        <option name="mySupportsDeletion" value="false" />
545
+        <option name="myCanBeAbsent" value="false" />
546
+        <option name="myId" value="SWITCHED" />
547
+      </FILE-GROUP>
548
+    </UpdatedFiles>
549
+  </component>
367 550
   <component name="RunManager" selected="Application.Main">
368 551
     <configuration default="false" name="Main" type="Application" factoryName="Application" temporary="true">
369 552
       <extension name="coverage" enabled="false" merge="false" sample_coverage="true" runner="idea" />
@@ -697,7 +880,13 @@
697 880
       <option name="project" value="LOCAL" />
698 881
       <updated>1433522454971</updated>
699 882
     </task>
700
-    <option name="localTasksCounter" value="29" />
883
+    <task id="LOCAL-00029" summary="++mieux">
884
+      <created>1433527744562</created>
885
+      <option name="number" value="00029" />
886
+      <option name="project" value="LOCAL" />
887
+      <updated>1433527744562</updated>
888
+    </task>
889
+    <option name="localTasksCounter" value="30" />
701 890
     <servers />
702 891
   </component>
703 892
   <component name="TodoView">
@@ -719,23 +908,23 @@
719 908
       <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
720 909
       <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
721 910
       <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
722
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3996479" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
723 911
       <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32922536" sideWeight="0.5030441" order="9" side_tool="true" content_ui="tabs" />
724 912
       <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="true" content_ui="tabs" />
725
-      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.49695587" order="10" side_tool="false" content_ui="tabs" />
726
-      <window_info id="Messages" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32688928" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
913
+      <window_info id="Version Control" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32864675" sideWeight="0.49695587" order="10" side_tool="false" content_ui="tabs" />
914
+      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32688928" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
727 915
       <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32922536" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
728 916
       <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
729 917
       <window_info id="Maven Projects" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
730 918
       <window_info id="Application Servers" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="11" side_tool="false" content_ui="tabs" />
731
-      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.14893617" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
732
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.30579966" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
919
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.2006079" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
733 920
       <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
734 921
       <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
735 922
       <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
923
+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.3996479" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
736 924
       <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="SLIDING" type="SLIDING" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
737
-      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
925
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.30579966" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
738 926
       <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
927
+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
739 928
     </layout>
740 929
   </component>
741 930
   <component name="Vcs.Log.UiProperties">
@@ -779,7 +968,7 @@
779 968
   </component>
780 969
   <component name="XDebuggerManager">
781 970
     <breakpoint-manager>
782
-      <option name="time" value="6" />
971
+      <option name="time" value="8" />
783 972
     </breakpoint-manager>
784 973
     <watches-manager />
785 974
   </component>
@@ -788,21 +977,10 @@
788 977
     <option name="FILTER_TARGETS" value="false" />
789 978
   </component>
790 979
   <component name="editorHistoryManager">
791
-    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.java">
792
-      <provider selected="true" editor-type-id="text-editor">
793
-        <state vertical-scroll-proportion="0.0">
794
-          <caret line="75" column="143" selection-start-line="75" selection-start-column="143" selection-end-line="75" selection-end-column="143" />
795
-          <folding />
796
-        </state>
797
-      </provider>
798
-    </entry>
799 980
     <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java">
800 981
       <provider selected="true" editor-type-id="text-editor">
801 982
         <state vertical-scroll-proportion="0.0">
802 983
           <caret line="107" column="143" selection-start-line="107" selection-start-column="143" selection-end-line="107" selection-end-column="143" />
803
-          <folding>
804
-            <element signature="imports" expanded="true" />
805
-          </folding>
806 984
         </state>
807 985
       </provider>
808 986
     </entry>
@@ -821,7 +999,26 @@
821 999
         <state vertical-scroll-proportion="0.0">
822 1000
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
823 1001
           <folding>
824
-            <element signature="imports" expanded="true" />
1002
+            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1003
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1004
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1005
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1006
+            <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1007
+            <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1008
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1009
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1010
+            <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1011
+            <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1012
+            <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1013
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1014
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1015
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1016
+            <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1017
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1018
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1019
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1020
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1021
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
825 1022
           </folding>
826 1023
         </state>
827 1024
       </provider>
@@ -855,7 +1052,26 @@
855 1052
         <state vertical-scroll-proportion="0.0">
856 1053
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
857 1054
           <folding>
858
-            <element signature="imports" expanded="true" />
1055
+            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1056
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1057
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1058
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1059
+            <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1060
+            <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1061
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1062
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1063
+            <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1064
+            <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1065
+            <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1066
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1067
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1068
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1069
+            <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1070
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1071
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1072
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1073
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1074
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
859 1075
           </folding>
860 1076
         </state>
861 1077
       </provider>
@@ -889,7 +1105,26 @@
889 1105
         <state vertical-scroll-proportion="0.0">
890 1106
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
891 1107
           <folding>
892
-            <element signature="imports" expanded="true" />
1108
+            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1109
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1110
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1111
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1112
+            <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1113
+            <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1114
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1115
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1116
+            <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1117
+            <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1118
+            <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1119
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1120
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1121
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1122
+            <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1123
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1124
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1125
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1126
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1127
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
893 1128
           </folding>
894 1129
         </state>
895 1130
       </provider>
@@ -923,7 +1158,26 @@
923 1158
         <state vertical-scroll-proportion="0.0">
924 1159
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
925 1160
           <folding>
926
-            <element signature="imports" expanded="true" />
1161
+            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1162
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1163
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1164
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1165
+            <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1166
+            <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1167
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1168
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1169
+            <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1170
+            <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1171
+            <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1172
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1173
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1174
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1175
+            <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1176
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1177
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1178
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1179
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1180
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
927 1181
           </folding>
928 1182
         </state>
929 1183
       </provider>
@@ -957,7 +1211,26 @@
957 1211
         <state vertical-scroll-proportion="0.0">
958 1212
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
959 1213
           <folding>
960
-            <element signature="imports" expanded="true" />
1214
+            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1215
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1216
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1217
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1218
+            <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1219
+            <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1220
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1221
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1222
+            <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1223
+            <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1224
+            <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1225
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1226
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1227
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1228
+            <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1229
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1230
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1231
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1232
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1233
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
961 1234
           </folding>
962 1235
         </state>
963 1236
       </provider>
@@ -1012,7 +1285,26 @@
1012 1285
         <state vertical-scroll-proportion="0.0">
1013 1286
           <caret line="0" column="21" selection-start-line="0" selection-start-column="21" selection-end-line="0" selection-end-column="21" />
1014 1287
           <folding>
1015
-            <element signature="imports" expanded="true" />
1288
+            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1289
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1290
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1291
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1292
+            <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1293
+            <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1294
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1295
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1296
+            <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1297
+            <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1298
+            <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1299
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1300
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1301
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1302
+            <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1303
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1304
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1305
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1306
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1307
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1016 1308
           </folding>
1017 1309
         </state>
1018 1310
       </provider>
@@ -1038,7 +1330,6 @@
1038 1330
       <provider selected="true" editor-type-id="text-editor">
1039 1331
         <state vertical-scroll-proportion="0.46082088">
1040 1332
           <caret line="52" column="26" selection-start-line="52" selection-start-column="26" selection-end-line="52" selection-end-column="26" />
1041
-          <folding />
1042 1333
         </state>
1043 1334
       </provider>
1044 1335
     </entry>
@@ -1054,10 +1345,6 @@
1054 1345
       <provider selected="true" editor-type-id="text-editor">
1055 1346
         <state vertical-scroll-proportion="0.0">
1056 1347
           <caret line="7" column="4" selection-start-line="7" selection-start-column="4" selection-end-line="7" selection-end-column="4" />
1057
-          <folding>
1058
-            <element signature="e#97#98#0" expanded="true" />
1059
-            <element signature="e#118#119#0" expanded="true" />
1060
-          </folding>
1061 1348
         </state>
1062 1349
       </provider>
1063 1350
     </entry>
@@ -1065,7 +1352,6 @@
1065 1352
       <provider selected="true" editor-type-id="text-editor">
1066 1353
         <state vertical-scroll-proportion="0.0">
1067 1354
           <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
1068
-          <folding />
1069 1355
         </state>
1070 1356
       </provider>
1071 1357
     </entry>
@@ -1073,9 +1359,6 @@
1073 1359
       <provider selected="true" editor-type-id="text-editor">
1074 1360
         <state vertical-scroll-proportion="0.7044199">
1075 1361
           <caret line="15" column="43" selection-start-line="15" selection-start-column="43" selection-end-line="15" selection-end-column="43" />
1076
-          <folding>
1077
-            <element signature="imports" expanded="true" />
1078
-          </folding>
1079 1362
         </state>
1080 1363
       </provider>
1081 1364
     </entry>
@@ -1083,84 +1366,108 @@
1083 1366
       <provider selected="true" editor-type-id="text-editor">
1084 1367
         <state vertical-scroll-proportion="-2.3283582">
1085 1368
           <caret line="38" column="47" selection-start-line="38" selection-start-column="12" selection-end-line="38" selection-end-column="47" />
1086
-          <folding />
1087 1369
         </state>
1088 1370
       </provider>
1089 1371
     </entry>
1090
-    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java">
1372
+    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java">
1091 1373
       <provider selected="true" editor-type-id="text-editor">
1092
-        <state vertical-scroll-proportion="-7.402985">
1093
-          <caret line="49" column="47" selection-start-line="49" selection-start-column="47" selection-end-line="49" selection-end-column="47" />
1094
-          <folding>
1095
-            <element signature="imports" expanded="true" />
1096
-          </folding>
1374
+        <state vertical-scroll-proportion="2.2111554">
1375
+          <caret line="72" column="13" selection-start-line="72" selection-start-column="13" selection-end-line="72" selection-end-column="13" />
1097 1376
         </state>
1098 1377
       </provider>
1099 1378
     </entry>
1100
-    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/GestionCategories.java">
1379
+    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.java">
1101 1380
       <provider selected="true" editor-type-id="text-editor">
1102
-        <state vertical-scroll-proportion="0.6012793">
1103
-          <caret line="100" column="47" selection-start-line="100" selection-start-column="47" selection-end-line="100" selection-end-column="47" />
1104
-          <folding />
1381
+        <state vertical-scroll-proportion="0.45816734">
1382
+          <caret line="75" column="143" selection-start-line="75" selection-start-column="143" selection-end-line="75" selection-end-column="143" />
1105 1383
         </state>
1106 1384
       </provider>
1107 1385
     </entry>
1108
-    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/GestionQuestions.java">
1386
+    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.java">
1109 1387
       <provider selected="true" editor-type-id="text-editor">
1110
-        <state vertical-scroll-proportion="0.6012793">
1111
-          <caret line="110" column="47" selection-start-line="110" selection-start-column="47" selection-end-line="110" selection-end-column="47" />
1112
-          <folding />
1388
+        <state vertical-scroll-proportion="-0.033864543">
1389
+          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
1113 1390
         </state>
1114 1391
       </provider>
1115 1392
     </entry>
1116
-    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/GestionReponses.java">
1393
+    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java">
1117 1394
       <provider selected="true" editor-type-id="text-editor">
1118
-        <state vertical-scroll-proportion="1.8550106">
1119
-          <caret line="107" column="47" selection-start-line="107" selection-start-column="47" selection-end-line="107" selection-end-column="47" />
1395
+        <state vertical-scroll-proportion="0.41231343">
1396
+          <caret line="13" column="0" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
1120 1397
           <folding />
1121 1398
         </state>
1122 1399
       </provider>
1123 1400
     </entry>
1124
-    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java">
1401
+    <entry file="file://$PROJECT_DIR$/src/GestionErreurs/BDDException.java">
1125 1402
       <provider selected="true" editor-type-id="text-editor">
1126
-        <state vertical-scroll-proportion="0.9872068">
1127
-          <caret line="577" column="110" selection-start-line="577" selection-start-column="110" selection-end-line="577" selection-end-column="110" />
1403
+        <state vertical-scroll-proportion="0.22201492">
1404
+          <caret line="7" column="5" selection-start-line="7" selection-start-column="5" selection-end-line="7" selection-end-column="5" />
1128 1405
           <folding>
1129
-            <element signature="imports" expanded="true" />
1406
+            <element signature="e#109#110#0" expanded="false" />
1407
+            <element signature="e#130#131#0" expanded="false" />
1130 1408
           </folding>
1131 1409
         </state>
1132 1410
       </provider>
1133 1411
     </entry>
1134
-    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java">
1412
+    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/GestionQuestions.java">
1135 1413
       <provider selected="true" editor-type-id="text-editor">
1136
-        <state vertical-scroll-proportion="2.2111554">
1137
-          <caret line="72" column="13" selection-start-line="72" selection-start-column="13" selection-end-line="72" selection-end-column="13" />
1414
+        <state vertical-scroll-proportion="1.4757463">
1415
+          <caret line="112" column="144" selection-start-line="112" selection-start-column="144" selection-end-line="112" selection-end-column="144" />
1416
+          <folding />
1417
+        </state>
1418
+      </provider>
1419
+    </entry>
1420
+    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/GestionCategories.java">
1421
+      <provider selected="true" editor-type-id="text-editor">
1422
+        <state vertical-scroll-proportion="3.0298507">
1423
+          <caret line="114" column="61" selection-start-line="114" selection-start-column="61" selection-end-line="114" selection-end-column="61" />
1138 1424
           <folding>
1139 1425
             <element signature="imports" expanded="true" />
1140 1426
           </folding>
1141 1427
         </state>
1142 1428
       </provider>
1143 1429
     </entry>
1144
-    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/NouvelleQuestionDialog.java">
1430
+    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/GestionReponses.java">
1145 1431
       <provider selected="true" editor-type-id="text-editor">
1146
-        <state vertical-scroll-proportion="0.45816734">
1147
-          <caret line="75" column="143" selection-start-line="75" selection-start-column="143" selection-end-line="75" selection-end-column="143" />
1432
+        <state vertical-scroll-proportion="0.5242537">
1433
+          <caret line="130" column="9" selection-start-line="130" selection-start-column="9" selection-end-line="130" selection-end-column="9" />
1148 1434
           <folding />
1149 1435
         </state>
1150 1436
       </provider>
1151 1437
     </entry>
1152
-    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/NouvelleReponseDialog.java">
1438
+    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java">
1153 1439
       <provider selected="true" editor-type-id="text-editor">
1154
-        <state vertical-scroll-proportion="-0.033864543">
1155
-          <caret line="7" column="13" selection-start-line="7" selection-start-column="13" selection-end-line="7" selection-end-column="13" />
1156
-          <folding />
1440
+        <state vertical-scroll-proportion="0.0">
1441
+          <caret line="425" column="45" selection-start-line="425" selection-start-column="45" selection-end-line="425" selection-end-column="45" />
1442
+          <folding>
1443
+            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1444
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1445
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1446
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1447
+            <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1448
+            <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1449
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1450
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1451
+            <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1452
+            <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1453
+            <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1454
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1455
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1456
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1457
+            <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1458
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1459
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1460
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1461
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1462
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1463
+          </folding>
1157 1464
         </state>
1158 1465
       </provider>
1159 1466
     </entry>
1160
-    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java">
1467
+    <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java">
1161 1468
       <provider selected="true" editor-type-id="text-editor">
1162
-        <state vertical-scroll-proportion="0.19428572">
1163
-          <caret line="4" column="13" selection-start-line="4" selection-start-column="13" selection-end-line="4" selection-end-column="19" />
1469
+        <state vertical-scroll-proportion="0.6590258">
1470
+          <caret line="107" column="5" selection-start-line="107" selection-start-column="5" selection-end-line="107" selection-end-column="5" />
1164 1471
           <folding />
1165 1472
         </state>
1166 1473
       </provider>

BIN
java/out/production/java/MainAdminBddBurgerQuizz.class Voir le fichier


+ 109
- 25
java/src/GestionBddDAO/ConnexionBDD.java Voir le fichier

@@ -3,6 +3,7 @@ package GestionBddDAO;
3 3
 import GestionBddDAO.GestionCategories;
4 4
 import GestionBddDAO.GestionQuestions;
5 5
 import GestionBddDAO.GestionReponses;
6
+import GestionErreurs.BDDException;
6 7
 import Modele.Categorie;
7 8
 import Modele.Question;
8 9
 import Modele.Reponses;
@@ -47,75 +48,158 @@ public class ConnexionBDD
47 48
 		}
48 49
 		catch(SQLException e)
49 50
 		{
50
-			System.out.println(e.getMessage());
51 51
 			System.out.println("Erreur de conexion à la base de données: " + e.getMessage());
52 52
 			return false;
53 53
 		}
54 54
 	}
55 55
 
56 56
 	//Gestion catégorie
57
-	public ArrayList<Categorie> getListeCategorie()
57
+	public ArrayList<Categorie> getListeCategorie() throws BDDException
58 58
 	{
59
-		gestionCategories.readCategorie();
59
+		try
60
+		{
61
+			gestionCategories.readCategorie();
62
+		}
63
+		catch(SQLException e)
64
+		{
65
+			throw new BDDException("Impossible de charger la liste des catégories. La bdd indique: " + e.getMessage());
66
+		}
60 67
 		return gestionCategories.getListCategories();
61 68
 	}
62 69
 
63
-	public void createCategorie(String categorieName)
70
+	public void createCategorie(String categorieName) throws BDDException
64 71
 	{
65
-		gestionCategories.createCategorie(categorieName);
72
+		try
73
+		{
74
+			gestionCategories.createCategorie(categorieName);
75
+		}
76
+		catch(SQLException e)
77
+		{
78
+			throw new BDDException("Impossible de créer une nouvelle catégorie. La bdd indique: " + e.getMessage());
79
+		}
66 80
 	}
67 81
 
68
-	public void deleteCategorie(String categorieName)
82
+	public void deleteCategorie(String categorieName) throws BDDException
69 83
 	{
70
-		gestionCategories.deleteCategorie(categorieName);
84
+		try
85
+		{
86
+			gestionCategories.deleteCategorie(categorieName);
87
+		}
88
+		catch(SQLException e)
89
+		{
90
+			throw new BDDException("Impossible de suprimer la catégorie. La bdd indique: " + e.getMessage());
91
+		}
71 92
 	}
72 93
 
73
-	public void renameCategorie(String oldCategorieName, String newCategorieName)
94
+	public void renameCategorie(String oldCategorieName, String newCategorieName) throws BDDException
74 95
 	{
75
-		gestionCategories.updateCategorie(oldCategorieName, newCategorieName);
96
+		try
97
+		{
98
+			gestionCategories.updateCategorie(oldCategorieName, newCategorieName);
99
+		}
100
+		catch(SQLException e)
101
+		{
102
+			throw new BDDException("Impossible de renommer catégorie. La bdd indique: " + e.getMessage());
103
+		}
76 104
 	}
77 105
 
78 106
 	//Gestion réponses
79
-	public ArrayList<Reponses> getListeReponses(String catName)
107
+	public ArrayList<Reponses> getListeReponses(String catName) throws BDDException
80 108
 	{
81
-		gestionReponses.readReponses(catName);
109
+		try
110
+		{
111
+			gestionReponses.readReponses(catName);
112
+		}
113
+		catch(SQLException e)
114
+		{
115
+			throw new BDDException("Impossible de charger la liste des réponses. La bdd indique: " + e.getMessage());
116
+		}
82 117
 		return gestionReponses.getListReponses();
83 118
 	}
84 119
 
85
-	public void createReponses(String nomCategorie, String reponse1, String reponse2)
120
+	public void createReponses(String nomCategorie, String reponse1, String reponse2) throws BDDException
86 121
 	{
87
-		gestionReponses.createReponses(nomCategorie, reponse1, reponse2);
122
+		try
123
+		{
124
+			gestionReponses.createReponses(nomCategorie, reponse1, reponse2);
125
+		}
126
+		catch(SQLException e)
127
+		{
128
+			throw new BDDException("Impossible de créer une nouvelle réponse. La bdd indique: " + e.getMessage());
129
+		}
88 130
 	}
89 131
 
90
-	public void deleteReponses(String reponse1, String reponse2)
132
+	public void deleteReponses(String reponse1, String reponse2) throws BDDException
91 133
 	{
92
-		gestionReponses.deleteReponses(reponse1, reponse2);
134
+		try
135
+		{
136
+			gestionReponses.deleteReponses(reponse1, reponse2);
137
+		}
138
+		catch(SQLException e)
139
+		{
140
+			throw new BDDException("Impossible de suprimmer la réponse. La bdd indique: " + e.getMessage());
141
+		}
93 142
 	}
94 143
 
95
-	public void modifyReponses(String categorie, String oldRep1, String oldRep2, String newRep1, String newRep2)
144
+	public void modifyReponses(String categorie, String oldRep1, String oldRep2, String newRep1, String newRep2) throws BDDException
96 145
 	{
97
-		gestionReponses.updateReponses(categorie, oldRep1, oldRep2, newRep1, newRep2);
146
+		try
147
+		{
148
+			gestionReponses.updateReponses(categorie, oldRep1, oldRep2, newRep1, newRep2);
149
+		}
150
+		catch(SQLException e)
151
+		{
152
+			throw new BDDException("Impossible de modifier la réponse. La bdd indique: " + e.getMessage());
153
+		}
98 154
 	}
99 155
 
100 156
 	//Gestion questions
101
-	public ArrayList<Question> getListeQuestions(String reponse1, String reponse2)
157
+	public ArrayList<Question> getListeQuestions(String reponse1, String reponse2) throws BDDException
102 158
 	{
103
-		gestionQuestions.readQuestions(reponse1, reponse2);
159
+		try
160
+		{
161
+			gestionQuestions.readQuestions(reponse1, reponse2);
162
+		}
163
+		catch(SQLException e)
164
+		{
165
+			throw new BDDException("Impossible de charger la liste des questions. La bdd indique: " + e.getMessage());
166
+		}
104 167
 		return gestionQuestions.getListeQuestions();
105 168
 	}
106 169
 
107
-	public void createQuestion(String intitule, String reponse1, String reponse2, int num_reponse)
170
+	public void createQuestion(String intitule, String reponse1, String reponse2, int num_reponse) throws BDDException
108 171
 	{
109
-		gestionQuestions.createQuestion(intitule, reponse1, reponse2, num_reponse);
172
+		try
173
+		{
174
+			gestionQuestions.createQuestion(intitule, reponse1, reponse2, num_reponse);
175
+		}
176
+		catch(SQLException e)
177
+		{
178
+			throw new BDDException("Impossible de créer une nouvelle question. La bdd indique: " + e.getMessage());
179
+		}
110 180
 	}
111 181
 
112
-	public void deleteQuestion(String intitule, String reponse1, String reponse2)
182
+	public void deleteQuestion(String intitule, String reponse1, String reponse2) throws BDDException
113 183
 	{
114
-		gestionQuestions.deleteQuestion(intitule, reponse1, reponse2);
184
+		try
185
+		{
186
+			gestionQuestions.deleteQuestion(intitule, reponse1, reponse2);
187
+		}
188
+		catch(SQLException e)
189
+		{
190
+			throw new BDDException("Impossible de suprimer la question. La bdd indique: " + e.getMessage());
191
+		}
115 192
 	}
116 193
 
117
-	public void modifyQuestion(String oldIntitule, String newIntitule, String reponse1, String reponse2, int newNum_reponse)
194
+	public void modifyQuestion(String oldIntitule, String newIntitule, String reponse1, String reponse2, int newNum_reponse) throws BDDException
118 195
 	{
119
-		gestionQuestions.updateQuestion(oldIntitule, newIntitule, reponse1, reponse2, newNum_reponse);
196
+		try
197
+		{
198
+			gestionQuestions.updateQuestion(oldIntitule, newIntitule, reponse1, reponse2, newNum_reponse);
199
+		}
200
+		catch(SQLException e)
201
+		{
202
+			throw new BDDException("Impossible de modifier la question. La bdd indique: " + e.getMessage());
203
+		}
120 204
 	}
121 205
 }

+ 50
- 24
java/src/GestionBddDAO/GestionCategories.java Voir le fichier

@@ -1,5 +1,6 @@
1 1
 package GestionBddDAO;
2 2
 
3
+import GestionErreurs.BDDException;
3 4
 import Modele.Categorie;
4 5
 
5 6
 import java.sql.Connection;
@@ -19,14 +20,16 @@ public class GestionCategories
19 20
 		listCategories = new ArrayList<Categorie>();
20 21
 	}
21 22
 
22
-	public void readCategorie()
23
+	public void readCategorie() throws SQLException
23 24
 	{
25
+		PreparedStatement preparedStatement = null;
26
+		ResultSet resultat = null;
24 27
 		String rq = "SELECT *" +
25 28
 				"FROM categorie";
26 29
 		try
27 30
 		{
28
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
29
-			ResultSet resultat = preparedStatement.executeQuery();
31
+			preparedStatement = bdd.prepareStatement(rq);
32
+			resultat = preparedStatement.executeQuery();
30 33
 
31 34
 			listCategories.clear();
32 35
 
@@ -34,71 +37,94 @@ public class GestionCategories
34 37
 			{
35 38
 				listCategories.add(new Categorie(resultat.getString("nom_cat")));
36 39
 			}
37
-
38
-			resultat.close();
39
-			preparedStatement.close();
40
-
41 40
 		}
42 41
 		catch (SQLException e)
43 42
 		{
44
-			System.out.println(e.getMessage());
43
+			throw e;
44
+		}
45
+		finally
46
+		{
47
+			if(resultat != null)
48
+			{
49
+				resultat.close();
50
+			}
51
+			if(preparedStatement != null) {
52
+				preparedStatement.close();
53
+			}
45 54
 		}
46 55
 	}
47 56
 
48
-	public void createCategorie(String categorieName)
57
+	public void createCategorie(String categorieName) throws SQLException
49 58
 	{
59
+		PreparedStatement preparedStatement = null;
50 60
 		String rq ="INSERT INTO categorie(nom_cat)" +
51 61
 				" VALUES(?)";
52 62
 		try
53 63
 		{
54
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
64
+			preparedStatement = bdd.prepareStatement(rq);
55 65
 			preparedStatement.setString(1,categorieName);
56 66
 			preparedStatement.executeUpdate();
57
-
58
-			preparedStatement.close();
59 67
 		}
60 68
 		catch (SQLException e)
61 69
 		{
62
-			System.out.println(e.getMessage());
70
+			throw e;
71
+		}
72
+		finally
73
+		{
74
+			if(preparedStatement != null)
75
+			{
76
+				preparedStatement.close();
77
+			}
63 78
 		}
64 79
 	}
65 80
 
66
-	public void deleteCategorie(String categorieName)
81
+	public void deleteCategorie(String categorieName) throws SQLException
67 82
 	{
83
+		PreparedStatement preparedStatement = null;
68 84
 		String rq ="DELETE FROM categorie" +
69 85
 				" WHERE nom_cat = ?";
70 86
 		try
71 87
 		{
72
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
88
+			preparedStatement = bdd.prepareStatement(rq);
73 89
 			preparedStatement.setString(1,categorieName);
74 90
 			preparedStatement.executeUpdate();
75
-
76
-			preparedStatement.close();
77 91
 		}
78 92
 		catch (SQLException e)
79 93
 		{
80
-			System.out.println(e.getMessage());
94
+			throw e;
95
+		}
96
+		finally
97
+		{
98
+			if(preparedStatement != null)
99
+			{
100
+				preparedStatement.close();
101
+			}
81 102
 		}
82 103
 	}
83 104
 
84
-	public void updateCategorie(String oldCategorieName, String newCategorieName)
105
+	public void updateCategorie(String oldCategorieName, String newCategorieName) throws SQLException
85 106
 	{
86
-
107
+		PreparedStatement preparedStatement = null;
87 108
 		String rq ="UPDATE categorie" +
88 109
 				" SET nom_cat = ?" +
89 110
 				" WHERE nom_cat = ?";
90 111
 		try
91 112
 		{
92
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
113
+			preparedStatement = bdd.prepareStatement(rq);
93 114
 			preparedStatement.setString(1, newCategorieName);
94 115
 			preparedStatement.setString(2, oldCategorieName);
95 116
 			preparedStatement.executeUpdate();
96
-
97
-			preparedStatement.close();
98 117
 		}
99 118
 		catch (SQLException e)
100 119
 		{
101
-			System.out.println(e.getMessage());
120
+			throw e;
121
+		}
122
+		finally
123
+		{
124
+			if(preparedStatement != null)
125
+			{
126
+				preparedStatement.close();
127
+			}
102 128
 		}
103 129
 	}
104 130
 

+ 51
- 24
java/src/GestionBddDAO/GestionQuestions.java Voir le fichier

@@ -19,18 +19,20 @@ public class GestionQuestions
19 19
 		this.listeQuestions = new ArrayList<Question>();
20 20
 	}
21 21
 
22
-	public void readQuestions(String reponse1, String reponse2)
22
+	public void readQuestions(String reponse1, String reponse2) throws SQLException
23 23
 	{
24
+		PreparedStatement preparedStatement = null;
25
+		ResultSet resultat = null;
24 26
 		String rq = "SELECT *" +
25 27
 				" FROM questions" +
26 28
 				" WHERE reponse1 = ? AND reponse2 = ?";
27 29
 
28 30
 		try
29 31
 		{
30
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
32
+			preparedStatement = bdd.prepareStatement(rq);
31 33
 			preparedStatement.setString(1, reponse1);
32 34
 			preparedStatement.setString(2, reponse2);
33
-			ResultSet resultat = preparedStatement.executeQuery();
35
+			resultat = preparedStatement.executeQuery();
34 36
 
35 37
 			listeQuestions.clear();
36 38
 
@@ -38,77 +40,102 @@ public class GestionQuestions
38 40
 			{
39 41
 				listeQuestions.add(new Question(resultat.getString("intitule"), resultat.getString("reponse1"), resultat.getString("reponse2"), resultat.getInt("num_reponse")));
40 42
 			}
41
-
42
-			resultat.close();
43
-			preparedStatement.close();
44
-
45 43
 		}
46 44
 		catch (SQLException e)
47 45
 		{
48
-			System.out.println(e.getMessage());
46
+			throw e;
47
+		}
48
+		finally
49
+		{
50
+			if(resultat != null)
51
+			{
52
+				resultat.close();
53
+			}
54
+			if(preparedStatement != null) {
55
+				preparedStatement.close();
56
+			}
49 57
 		}
50 58
 	}
51 59
 
52
-	public void createQuestion(String intitule, String reponse1, String reponse2, int num_reponse)
60
+	public void createQuestion(String intitule, String reponse1, String reponse2, int num_reponse) throws SQLException
53 61
 	{
62
+		PreparedStatement preparedStatement = null;
54 63
 		String rq = "INSERT INTO questions(intitule, reponse1, reponse2, num_reponse)" +
55 64
 				" VALUES(?, ?, ?, ?)";
56 65
 		try
57 66
 		{
58
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
67
+			preparedStatement = bdd.prepareStatement(rq);
59 68
 			preparedStatement.setString(1, intitule);
60 69
 			preparedStatement.setString(2, reponse1);
61 70
 			preparedStatement.setString(3, reponse2);
62 71
 			preparedStatement.setInt(4, num_reponse);
63 72
 			preparedStatement.executeUpdate();
64
-
65
-			preparedStatement.close();
66 73
 		}
67
-		catch (SQLException e) {
68
-			System.out.println(e.getMessage());
74
+		catch (SQLException e)
75
+		{
76
+			throw e;
77
+		}
78
+		finally
79
+		{
80
+			if(preparedStatement != null)
81
+			{
82
+				preparedStatement.close();
83
+			}
69 84
 		}
70 85
 	}
71 86
 
72
-	public void deleteQuestion(String intitule, String reponse1, String reponse2)
87
+	public void deleteQuestion(String intitule, String reponse1, String reponse2) throws SQLException
73 88
 	{
89
+		PreparedStatement preparedStatement = null;
74 90
 		String rq ="DELETE FROM questions" +
75 91
 				" WHERE reponse1 = ? AND reponse2 = ? AND intitule = ?";
76 92
 		try
77 93
 		{
78
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
94
+			preparedStatement = bdd.prepareStatement(rq);
79 95
 			preparedStatement.setString(1, reponse1);
80 96
 			preparedStatement.setString(2, reponse2);
81 97
 			preparedStatement.setString(3, intitule);
82 98
 			preparedStatement.executeUpdate();
83
-
84
-			preparedStatement.close();
85 99
 		}
86 100
 		catch (SQLException e)
87 101
 		{
88
-			System.out.println(e.getMessage());
102
+			throw e;
103
+		}
104
+		finally
105
+		{
106
+			if(preparedStatement != null)
107
+			{
108
+				preparedStatement.close();
109
+			}
89 110
 		}
90 111
 	}
91 112
 
92
-	public void updateQuestion(String oldIntitule, String newIntitule, String reponse1, String reponse2, int newNum_reponse)
113
+	public void updateQuestion(String oldIntitule, String newIntitule, String reponse1, String reponse2, int newNum_reponse) throws SQLException
93 114
 	{
115
+		PreparedStatement preparedStatement = null;
94 116
 		String rq ="UPDATE questions" +
95 117
 				" SET intitule = ?, num_reponse = ?" +
96 118
 				" WHERE intitule = ? AND reponse1 = ? AND reponse2 = ?";
97 119
 		try
98 120
 		{
99
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
121
+			preparedStatement = bdd.prepareStatement(rq);
100 122
 			preparedStatement.setString(1, newIntitule);
101 123
 			preparedStatement.setInt(2, newNum_reponse);
102 124
 			preparedStatement.setString(3, oldIntitule);
103 125
 			preparedStatement.setString(4, reponse1);
104 126
 			preparedStatement.setString(5, reponse2);
105 127
 			preparedStatement.executeUpdate();
106
-
107
-			preparedStatement.close();
108 128
 		}
109 129
 		catch (SQLException e)
110 130
 		{
111
-			System.out.println(e.getMessage());
131
+			throw e;
132
+		}
133
+		finally
134
+		{
135
+			if(preparedStatement != null)
136
+			{
137
+				preparedStatement.close();
138
+			}
112 139
 		}
113 140
 	}
114 141
 

+ 51
- 24
java/src/GestionBddDAO/GestionReponses.java Voir le fichier

@@ -19,17 +19,19 @@ public class GestionReponses
19 19
 		listReponses = new ArrayList<Reponses>();
20 20
 	}
21 21
 
22
-	public void readReponses(String nomCategorie)
22
+	public void readReponses(String nomCategorie) throws SQLException
23 23
 	{
24
+		PreparedStatement preparedStatement = null;
25
+		ResultSet resultat = null;
24 26
 		String rq = "SELECT *" +
25 27
 				" FROM reponses" +
26 28
 				" WHERE nom_cat = ?";
27 29
 
28 30
 		try
29 31
 		{
30
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
32
+			preparedStatement = bdd.prepareStatement(rq);
31 33
 			preparedStatement.setString(1, nomCategorie);
32
-			ResultSet resultat = preparedStatement.executeQuery();
34
+			resultat = preparedStatement.executeQuery();
33 35
 
34 36
 			listReponses.clear();
35 37
 
@@ -37,75 +39,100 @@ public class GestionReponses
37 39
 			{
38 40
 				listReponses.add(new Reponses(resultat.getString("reponse1"), resultat.getString("reponse2")));
39 41
 			}
40
-
41
-			resultat.close();
42
-			preparedStatement.close();
43
-
44 42
 		}
45 43
 		catch (SQLException e)
46 44
 		{
47
-			System.out.println(e.getMessage());
45
+			throw e;
46
+		}
47
+		finally
48
+		{
49
+			if(resultat != null)
50
+			{
51
+				resultat.close();
52
+			}
53
+			if(preparedStatement != null) {
54
+				preparedStatement.close();
55
+			}
48 56
 		}
49 57
 	}
50 58
 
51
-	public void createReponses(String nomCategorie, String reponse1, String reponse2)
59
+	public void createReponses(String nomCategorie, String reponse1, String reponse2) throws SQLException
52 60
 	{
61
+		PreparedStatement preparedStatement = null;
53 62
 		String rq = "INSERT INTO reponses(nom_cat,reponse1,reponse2)" +
54 63
 				" VALUES(?,?,?)";
55 64
 		try
56 65
 		{
57
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
66
+			preparedStatement = bdd.prepareStatement(rq);
58 67
 			preparedStatement.setString(1, nomCategorie);
59 68
 			preparedStatement.setString(2, reponse1);
60 69
 			preparedStatement.setString(3, reponse2);
61 70
 			preparedStatement.executeUpdate();
62
-
63
-			preparedStatement.close();
64 71
 		}
65
-		catch (SQLException e) {
66
-			System.out.println(e.getMessage());
72
+		catch (SQLException e)
73
+		{
74
+			throw e;
75
+		}
76
+		finally
77
+		{
78
+			if(preparedStatement != null)
79
+			{
80
+				preparedStatement.close();
81
+			}
67 82
 		}
68 83
 	}
69 84
 
70
-	public void deleteReponses(String rep1, String rep2)
85
+	public void deleteReponses(String rep1, String rep2) throws SQLException
71 86
 	{
87
+		PreparedStatement preparedStatement = null;
72 88
 		String rq ="DELETE FROM reponses" +
73 89
 				" WHERE reponse1 = ? AND reponse2 = ?";
74 90
 		try
75 91
 		{
76
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
92
+			preparedStatement = bdd.prepareStatement(rq);
77 93
 			preparedStatement.setString(1, rep1);
78 94
 			preparedStatement.setString(2, rep2);
79 95
 			preparedStatement.executeUpdate();
80
-
81
-			preparedStatement.close();
82 96
 		}
83 97
 		catch (SQLException e)
84 98
 		{
85
-			System.out.println(e.getMessage());
99
+			throw e;
100
+		}
101
+		finally
102
+		{
103
+			if(preparedStatement != null)
104
+			{
105
+				preparedStatement.close();
106
+			}
86 107
 		}
87 108
 	}
88 109
 
89
-	public void updateReponses(String categorie, String oldRep1, String oldRep2, String newRep1, String newRep2)
110
+	public void updateReponses(String categorie, String oldRep1, String oldRep2, String newRep1, String newRep2) throws SQLException
90 111
 	{
112
+		PreparedStatement preparedStatement = null;
91 113
 		String rq ="UPDATE reponses" +
92 114
 				" SET nom_cat = ?, reponse1 = ?, reponse2 = ?" +
93 115
 				" WHERE reponse1 = ? AND reponse2 = ?";
94 116
 		try
95 117
 		{
96
-			PreparedStatement preparedStatement = bdd.prepareStatement(rq);
118
+			preparedStatement = bdd.prepareStatement(rq);
97 119
 			preparedStatement.setString(1, categorie);
98 120
 			preparedStatement.setString(2, newRep1);
99 121
 			preparedStatement.setString(3, newRep2);
100 122
 			preparedStatement.setString(4, oldRep1);
101 123
 			preparedStatement.setString(5, oldRep2);
102 124
 			preparedStatement.executeUpdate();
103
-
104
-			preparedStatement.close();
105 125
 		}
106 126
 		catch (SQLException e)
107 127
 		{
108
-			System.out.println(e.getMessage());
128
+			throw e;
129
+		}
130
+		finally
131
+		{
132
+			if(preparedStatement != null)
133
+			{
134
+				preparedStatement.close();
135
+			}
109 136
 		}
110 137
 	}
111 138
 

+ 9
- 0
java/src/GestionErreurs/BDDException.java Voir le fichier

@@ -0,0 +1,9 @@
1
+package GestionErreurs;
2
+
3
+public class BDDException extends Exception
4
+{
5
+	public BDDException(String message)
6
+	{
7
+		super(message);
8
+	}
9
+}

+ 6
- 0
java/src/InterfaceGraphique/InterfacePrincipale.java Voir le fichier

@@ -334,6 +334,12 @@ public class InterfacePrincipale extends JFrame
334 334
 		}while(!conOK);
335 335
 	}
336 336
 
337
+	private void setStatusText(String message, Color color)
338
+	{
339
+		statusText.setForeground(color);
340
+		statusText.setText(message);
341
+	}
342
+
337 343
 	private void reSelectCategorie(String newCatName)
338 344
 	{
339 345
 		Object[] tabObject = bdd.getListeCategorie().toArray();