Browse Source

dialogu co bdd

PCYoshi 9 years ago
parent
commit
93509ae057

+ 67
- 111
java/.idea/workspace.xml View File

7
   </component>
7
   </component>
8
   <component name="ChangeListManager">
8
   <component name="ChangeListManager">
9
     <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
9
     <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
10
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/ConnexionBDD.class" afterPath="$PROJECT_DIR$/out/production/java/ConnexionBDD.class" />
11
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionQuestions.class" afterPath="$PROJECT_DIR$/out/production/java/GestionQuestions.class" />
12
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanQuestionsListener.class" afterPath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanQuestionsListener.class" />
13
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanReponsesListener.class" afterPath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanReponsesListener.class" />
14
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/ConnexionBDD.java" afterPath="$PROJECT_DIR$/src/ConnexionBDD.java" />
15
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/GestionQuestions.java" afterPath="$PROJECT_DIR$/src/GestionQuestions.java" />
10
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/ConnexionBddDialog.java" />
11
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/GestionReponses.class" afterPath="$PROJECT_DIR$/out/production/java/GestionReponses.class" />
12
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/rsc/edit.png" afterPath="$PROJECT_DIR$/rsc/edit.png" />
16
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfacePrincipale.java" afterPath="$PROJECT_DIR$/src/InterfacePrincipale.java" />
13
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfacePrincipale.java" afterPath="$PROJECT_DIR$/src/InterfacePrincipale.java" />
17
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" afterPath="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" />
18
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/NouvelleReponseDialog.java" afterPath="$PROJECT_DIR$/src/NouvelleReponseDialog.java" />
19
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
14
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
20
     </list>
15
     </list>
21
     <ignored path="java.iws" />
16
     <ignored path="java.iws" />
38
   </component>
33
   </component>
39
   <component name="FileEditorManager">
34
   <component name="FileEditorManager">
40
     <leaf>
35
     <leaf>
41
-      <file leaf-file-name="InterfacePrincipale.java" pinned="false" current-in-tab="false">
36
+      <file leaf-file-name="InterfacePrincipale.java" pinned="false" current-in-tab="true">
42
         <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
37
         <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
43
           <provider selected="true" editor-type-id="text-editor">
38
           <provider selected="true" editor-type-id="text-editor">
44
-            <state vertical-scroll-proportion="0.0">
45
-              <caret line="231" column="68" selection-start-line="231" selection-start-column="68" selection-end-line="231" selection-end-column="68" />
39
+            <state vertical-scroll-proportion="0.28544775">
40
+              <caret line="51" column="32" selection-start-line="51" selection-start-column="32" selection-end-line="51" selection-end-column="32" />
46
               <folding>
41
               <folding>
47
                 <element signature="imports" expanded="true" />
42
                 <element signature="imports" expanded="true" />
48
-                <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
49
                 <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
43
                 <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
50
                 <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
44
                 <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
45
+                <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
51
                 <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
46
                 <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
52
                 <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
47
                 <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
53
               </folding>
48
               </folding>
59
         <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
54
         <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
60
           <provider selected="true" editor-type-id="text-editor">
55
           <provider selected="true" editor-type-id="text-editor">
61
             <state vertical-scroll-proportion="0.0">
56
             <state vertical-scroll-proportion="0.0">
62
-              <caret line="83" column="30" selection-start-line="83" selection-start-column="30" selection-end-line="83" selection-end-column="30" />
63
-              <folding>
64
-                <element signature="imports" expanded="true" />
65
-                <element signature="e#1239#1240#0" expanded="true" />
66
-                <element signature="e#1294#1295#0" expanded="true" />
67
-                <element signature="e#1349#1350#0" expanded="true" />
68
-                <element signature="e#1404#1405#0" expanded="true" />
69
-                <element signature="e#1960#1961#0" expanded="true" />
70
-                <element signature="e#2017#2018#0" expanded="true" />
71
-              </folding>
72
-            </state>
73
-          </provider>
74
-        </entry>
75
-      </file>
76
-      <file leaf-file-name="GestionReponses.java" pinned="false" current-in-tab="false">
77
-        <entry file="file://$PROJECT_DIR$/src/GestionReponses.java">
78
-          <provider selected="true" editor-type-id="text-editor">
79
-            <state vertical-scroll-proportion="0.0">
80
-              <caret line="84" column="28" selection-start-line="84" selection-start-column="28" selection-end-line="84" selection-end-column="28" />
57
+              <caret line="39" column="74" selection-start-line="39" selection-start-column="74" selection-end-line="39" selection-end-column="74" />
81
               <folding>
58
               <folding>
82
                 <element signature="imports" expanded="true" />
59
                 <element signature="imports" expanded="true" />
83
-                <element signature="e#2627#2628#0" expanded="true" />
84
-                <element signature="e#2653#2654#0" expanded="true" />
85
               </folding>
60
               </folding>
86
             </state>
61
             </state>
87
           </provider>
62
           </provider>
88
         </entry>
63
         </entry>
89
       </file>
64
       </file>
90
-      <file leaf-file-name="GestionQuestions.java" pinned="false" current-in-tab="false">
91
-        <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
65
+      <file leaf-file-name="ConnexionBddDialog.java" pinned="false" current-in-tab="false">
66
+        <entry file="file://$PROJECT_DIR$/src/ConnexionBddDialog.java">
92
           <provider selected="true" editor-type-id="text-editor">
67
           <provider selected="true" editor-type-id="text-editor">
93
             <state vertical-scroll-proportion="0.0">
68
             <state vertical-scroll-proportion="0.0">
94
-              <caret line="89" column="36" selection-start-line="89" selection-start-column="36" selection-end-line="89" selection-end-column="36" />
69
+              <caret line="74" column="24" selection-start-line="74" selection-start-column="24" selection-end-line="74" selection-end-column="24" />
95
               <folding>
70
               <folding>
96
                 <element signature="imports" expanded="true" />
71
                 <element signature="imports" expanded="true" />
97
-                <element signature="e#2985#2986#0" expanded="true" />
98
-                <element signature="e#3013#3014#0" expanded="true" />
99
               </folding>
72
               </folding>
100
             </state>
73
             </state>
101
           </provider>
74
           </provider>
105
         <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
78
         <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
106
           <provider selected="true" editor-type-id="text-editor">
79
           <provider selected="true" editor-type-id="text-editor">
107
             <state vertical-scroll-proportion="0.0">
80
             <state vertical-scroll-proportion="0.0">
108
-              <caret line="19" column="8" selection-start-line="19" selection-start-column="8" selection-end-line="19" selection-end-column="28" />
81
+              <caret line="53" column="58" selection-start-line="53" selection-start-column="58" selection-end-line="53" selection-end-column="58" />
109
               <folding>
82
               <folding>
110
                 <element signature="imports" expanded="true" />
83
                 <element signature="imports" expanded="true" />
111
                 <element signature="e#1976#1977#0" expanded="true" />
84
                 <element signature="e#1976#1977#0" expanded="true" />
117
           </provider>
90
           </provider>
118
         </entry>
91
         </entry>
119
       </file>
92
       </file>
120
-      <file leaf-file-name="NouvelleReponseDialog.java" pinned="false" current-in-tab="true">
121
-        <entry file="file://$PROJECT_DIR$/src/NouvelleReponseDialog.java">
122
-          <provider selected="true" editor-type-id="text-editor">
123
-            <state vertical-scroll-proportion="0.5635359">
124
-              <caret line="20" column="28" selection-start-line="20" selection-start-column="28" selection-end-line="20" selection-end-column="28" />
125
-              <folding>
126
-                <element signature="imports" expanded="true" />
127
-              </folding>
128
-            </state>
129
-          </provider>
130
-        </entry>
131
-      </file>
132
     </leaf>
93
     </leaf>
133
   </component>
94
   </component>
134
   <component name="FileTemplateManagerImpl">
95
   <component name="FileTemplateManagerImpl">
163
         <option value="$PROJECT_DIR$/src/GestionReponses.java" />
124
         <option value="$PROJECT_DIR$/src/GestionReponses.java" />
164
         <option value="$PROJECT_DIR$/src/ConnexionBDD.java" />
125
         <option value="$PROJECT_DIR$/src/ConnexionBDD.java" />
165
         <option value="$PROJECT_DIR$/src/GestionQuestions.java" />
126
         <option value="$PROJECT_DIR$/src/GestionQuestions.java" />
166
-        <option value="$PROJECT_DIR$/src/InterfacePrincipale.java" />
167
         <option value="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" />
127
         <option value="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" />
168
         <option value="$PROJECT_DIR$/src/NouvelleReponseDialog.java" />
128
         <option value="$PROJECT_DIR$/src/NouvelleReponseDialog.java" />
129
+        <option value="$PROJECT_DIR$/src/ConnexionBddDialog.java" />
130
+        <option value="$PROJECT_DIR$/src/InterfacePrincipale.java" />
169
       </list>
131
       </list>
170
     </option>
132
     </option>
171
   </component>
133
   </component>
284
       <sortByType />
246
       <sortByType />
285
     </navigator>
247
     </navigator>
286
     <panes>
248
     <panes>
287
-      <pane id="PackagesPane" />
288
-      <pane id="Scope" />
289
-      <pane id="Scratches" />
290
       <pane id="ProjectPane">
249
       <pane id="ProjectPane">
291
         <subPane>
250
         <subPane>
292
           <PATH>
251
           <PATH>
321
           </PATH>
280
           </PATH>
322
         </subPane>
281
         </subPane>
323
       </pane>
282
       </pane>
283
+      <pane id="Scope" />
284
+      <pane id="Scratches" />
285
+      <pane id="PackagesPane" />
324
     </panes>
286
     </panes>
325
   </component>
287
   </component>
326
   <component name="PropertiesComponent">
288
   <component name="PropertiesComponent">
362
           <option name="mySupportsDeletion" value="false" />
324
           <option name="mySupportsDeletion" value="false" />
363
           <option name="myCanBeAbsent" value="false" />
325
           <option name="myCanBeAbsent" value="false" />
364
           <option name="myId" value="UPDATED" />
326
           <option name="myId" value="UPDATED" />
365
-          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/api/controller/palmares.php</PATH>
366
-          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/index.htm</PATH>
367
-          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/js/game.js</PATH>
368
         </FILE-GROUP>
327
         </FILE-GROUP>
369
         <FILE-GROUP>
328
         <FILE-GROUP>
370
           <option name="myUpdateName" value="Created" />
329
           <option name="myUpdateName" value="Created" />
372
           <option name="mySupportsDeletion" value="false" />
331
           <option name="mySupportsDeletion" value="false" />
373
           <option name="myCanBeAbsent" value="false" />
332
           <option name="myCanBeAbsent" value="false" />
374
           <option name="myId" value="CREATED" />
333
           <option name="myId" value="CREATED" />
334
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/README</PATH>
335
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/client/index.html</PATH>
336
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/client/js/game.js</PATH>
337
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/server/npm-debug.log</PATH>
338
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/server/package.json</PATH>
339
+          <PATH vcs="Git" revision="">$PROJECT_DIR$/../web/multi/server/server.js</PATH>
375
         </FILE-GROUP>
340
         </FILE-GROUP>
376
         <FILE-GROUP>
341
         <FILE-GROUP>
377
           <option name="myUpdateName" value="Deleted" />
342
           <option name="myUpdateName" value="Deleted" />
745
       <option name="project" value="LOCAL" />
710
       <option name="project" value="LOCAL" />
746
       <updated>1433256920732</updated>
711
       <updated>1433256920732</updated>
747
     </task>
712
     </task>
748
-    <option name="localTasksCounter" value="21" />
713
+    <task id="LOCAL-00021" summary="++ gestion reponsesV5">
714
+      <created>1433258901442</created>
715
+      <option name="number" value="00021" />
716
+      <option name="project" value="LOCAL" />
717
+      <updated>1433258901442</updated>
718
+    </task>
719
+    <option name="localTasksCounter" value="22" />
749
     <servers />
720
     <servers />
750
   </component>
721
   </component>
751
   <component name="TodoView">
722
   <component name="TodoView">
766
       <window_info id="Designer" 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" />
737
       <window_info id="Designer" 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" />
767
       <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" />
738
       <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" />
768
       <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" />
739
       <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" />
769
-      <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" />
770
       <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" />
740
       <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" />
771
       <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" />
741
       <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" />
772
       <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" />
742
       <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" />
773
       <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" />
743
       <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" />
774
-      <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" />
744
+      <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" />
775
       <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
745
       <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
776
       <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" />
746
       <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" />
777
       <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" />
747
       <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" />
778
       <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" />
748
       <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" />
779
       <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" />
749
       <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" />
780
       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16717325" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
750
       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.16717325" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
781
-      <window_info id="Run" active="true" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.30579966" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
751
+      <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" />
782
       <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" />
752
       <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" />
783
       <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" />
753
       <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" />
754
+      <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" />
784
       <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" />
755
       <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" />
785
-      <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" />
786
       <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" />
756
       <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" />
757
+      <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" />
787
     </layout>
758
     </layout>
788
   </component>
759
   </component>
789
   <component name="Vcs.Log.UiProperties">
760
   <component name="Vcs.Log.UiProperties">
830
     <option name="FILTER_TARGETS" value="false" />
801
     <option name="FILTER_TARGETS" value="false" />
831
   </component>
802
   </component>
832
   <component name="editorHistoryManager">
803
   <component name="editorHistoryManager">
833
-    <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
834
-      <provider selected="true" editor-type-id="text-editor">
835
-        <state vertical-scroll-proportion="0.0">
836
-          <caret line="5" column="12" selection-start-line="5" selection-start-column="12" selection-end-line="5" selection-end-column="12" />
837
-        </state>
838
-      </provider>
839
-    </entry>
840
     <entry file="file://$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java">
804
     <entry file="file://$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java">
841
       <provider selected="true" editor-type-id="text-editor">
805
       <provider selected="true" editor-type-id="text-editor">
842
         <state vertical-scroll-proportion="0.0">
806
         <state vertical-scroll-proportion="0.0">
867
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
831
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
868
           <folding>
832
           <folding>
869
             <element signature="imports" expanded="true" />
833
             <element signature="imports" expanded="true" />
870
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
871
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
834
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
872
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
835
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
836
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
873
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
837
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
874
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
838
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
875
           </folding>
839
           </folding>
906
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
870
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
907
           <folding>
871
           <folding>
908
             <element signature="imports" expanded="true" />
872
             <element signature="imports" expanded="true" />
909
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
910
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
873
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
911
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
874
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
875
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
912
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
876
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
913
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
877
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
914
           </folding>
878
           </folding>
945
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
909
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
946
           <folding>
910
           <folding>
947
             <element signature="imports" expanded="true" />
911
             <element signature="imports" expanded="true" />
948
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
949
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
912
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
950
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
913
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
914
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
951
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
915
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
952
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
916
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
953
           </folding>
917
           </folding>
984
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
948
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
985
           <folding>
949
           <folding>
986
             <element signature="imports" expanded="true" />
950
             <element signature="imports" expanded="true" />
987
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
988
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
951
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
989
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
952
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
953
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
990
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
954
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
991
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
955
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
992
           </folding>
956
           </folding>
1023
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
987
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1024
           <folding>
988
           <folding>
1025
             <element signature="imports" expanded="true" />
989
             <element signature="imports" expanded="true" />
1026
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1027
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
990
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1028
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
991
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
992
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1029
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
993
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1030
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
994
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1031
           </folding>
995
           </folding>
1083
           <caret line="0" column="21" selection-start-line="0" selection-start-column="21" selection-end-line="0" selection-end-column="21" />
1047
           <caret line="0" column="21" selection-start-line="0" selection-start-column="21" selection-end-line="0" selection-end-column="21" />
1084
           <folding>
1048
           <folding>
1085
             <element signature="imports" expanded="true" />
1049
             <element signature="imports" expanded="true" />
1086
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1087
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1050
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1088
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1051
             <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1052
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1089
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1053
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1090
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1054
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1091
           </folding>
1055
           </folding>
1156
       <provider selected="true" editor-type-id="text-editor">
1120
       <provider selected="true" editor-type-id="text-editor">
1157
         <state vertical-scroll-proportion="0.3488806">
1121
         <state vertical-scroll-proportion="0.3488806">
1158
           <caret line="13" column="0" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
1122
           <caret line="13" column="0" selection-start-line="13" selection-start-column="0" selection-end-line="13" selection-end-column="0" />
1159
-          <folding>
1160
-            <element signature="e#223#224#0" expanded="true" />
1161
-            <element signature="e#245#246#0" expanded="true" />
1162
-            <element signature="e#290#291#0" expanded="true" />
1163
-            <element signature="e#321#322#0" expanded="true" />
1164
-            <element signature="e#353#354#0" expanded="true" />
1165
-            <element signature="e#375#376#0" expanded="true" />
1166
-            <element signature="e#420#421#0" expanded="true" />
1167
-            <element signature="e#451#452#0" expanded="true" />
1168
-            <element signature="e#480#481#0" expanded="true" />
1169
-            <element signature="e#539#540#0" expanded="true" />
1170
-          </folding>
1171
         </state>
1123
         </state>
1172
       </provider>
1124
       </provider>
1173
     </entry>
1125
     </entry>
1196
         </state>
1148
         </state>
1197
       </provider>
1149
       </provider>
1198
     </entry>
1150
     </entry>
1199
-    <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
1151
+    <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
1200
       <provider selected="true" editor-type-id="text-editor">
1152
       <provider selected="true" editor-type-id="text-editor">
1201
         <state vertical-scroll-proportion="0.0">
1153
         <state vertical-scroll-proportion="0.0">
1202
-          <caret line="83" column="30" selection-start-line="83" selection-start-column="30" selection-end-line="83" selection-end-column="30" />
1154
+          <caret line="89" column="36" selection-start-line="89" selection-start-column="36" selection-end-line="89" selection-end-column="36" />
1203
           <folding>
1155
           <folding>
1204
             <element signature="imports" expanded="true" />
1156
             <element signature="imports" expanded="true" />
1205
-            <element signature="e#1239#1240#0" expanded="true" />
1206
-            <element signature="e#1294#1295#0" expanded="true" />
1207
-            <element signature="e#1349#1350#0" expanded="true" />
1208
-            <element signature="e#1404#1405#0" expanded="true" />
1209
-            <element signature="e#1960#1961#0" expanded="true" />
1210
-            <element signature="e#2017#2018#0" expanded="true" />
1157
+            <element signature="e#2985#2986#0" expanded="true" />
1158
+            <element signature="e#3013#3014#0" expanded="true" />
1211
           </folding>
1159
           </folding>
1212
         </state>
1160
         </state>
1213
       </provider>
1161
       </provider>
1214
     </entry>
1162
     </entry>
1215
-    <entry file="file://$PROJECT_DIR$/src/GestionQuestions.java">
1163
+    <entry file="file://$PROJECT_DIR$/src/NouvelleReponseDialog.java">
1216
       <provider selected="true" editor-type-id="text-editor">
1164
       <provider selected="true" editor-type-id="text-editor">
1217
         <state vertical-scroll-proportion="0.0">
1165
         <state vertical-scroll-proportion="0.0">
1218
-          <caret line="89" column="36" selection-start-line="89" selection-start-column="36" selection-end-line="89" selection-end-column="36" />
1166
+          <caret line="20" column="28" selection-start-line="20" selection-start-column="28" selection-end-line="20" selection-end-column="28" />
1219
           <folding>
1167
           <folding>
1220
             <element signature="imports" expanded="true" />
1168
             <element signature="imports" expanded="true" />
1221
-            <element signature="e#2985#2986#0" expanded="true" />
1222
-            <element signature="e#3013#3014#0" expanded="true" />
1223
           </folding>
1169
           </folding>
1224
         </state>
1170
         </state>
1225
       </provider>
1171
       </provider>
1226
     </entry>
1172
     </entry>
1227
-    <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
1173
+    <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
1228
       <provider selected="true" editor-type-id="text-editor">
1174
       <provider selected="true" editor-type-id="text-editor">
1229
         <state vertical-scroll-proportion="0.0">
1175
         <state vertical-scroll-proportion="0.0">
1230
-          <caret line="231" column="68" selection-start-line="231" selection-start-column="68" selection-end-line="231" selection-end-column="68" />
1176
+          <caret line="39" column="74" selection-start-line="39" selection-start-column="74" selection-end-line="39" selection-end-column="74" />
1231
           <folding>
1177
           <folding>
1232
             <element signature="imports" expanded="true" />
1178
             <element signature="imports" expanded="true" />
1233
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1234
-            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1235
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1236
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1237
-            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1238
           </folding>
1179
           </folding>
1239
         </state>
1180
         </state>
1240
       </provider>
1181
       </provider>
1242
     <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
1183
     <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
1243
       <provider selected="true" editor-type-id="text-editor">
1184
       <provider selected="true" editor-type-id="text-editor">
1244
         <state vertical-scroll-proportion="0.0">
1185
         <state vertical-scroll-proportion="0.0">
1245
-          <caret line="19" column="8" selection-start-line="19" selection-start-column="8" selection-end-line="19" selection-end-column="28" />
1186
+          <caret line="53" column="58" selection-start-line="53" selection-start-column="58" selection-end-line="53" selection-end-column="58" />
1246
           <folding>
1187
           <folding>
1247
             <element signature="imports" expanded="true" />
1188
             <element signature="imports" expanded="true" />
1248
             <element signature="e#1976#1977#0" expanded="true" />
1189
             <element signature="e#1976#1977#0" expanded="true" />
1253
         </state>
1194
         </state>
1254
       </provider>
1195
       </provider>
1255
     </entry>
1196
     </entry>
1256
-    <entry file="file://$PROJECT_DIR$/src/NouvelleReponseDialog.java">
1197
+    <entry file="file://$PROJECT_DIR$/src/ConnexionBddDialog.java">
1257
       <provider selected="true" editor-type-id="text-editor">
1198
       <provider selected="true" editor-type-id="text-editor">
1258
-        <state vertical-scroll-proportion="0.5635359">
1259
-          <caret line="20" column="28" selection-start-line="20" selection-start-column="28" selection-end-line="20" selection-end-column="28" />
1199
+        <state vertical-scroll-proportion="0.0">
1200
+          <caret line="74" column="24" selection-start-line="74" selection-start-column="24" selection-end-line="74" selection-end-column="24" />
1201
+          <folding>
1202
+            <element signature="imports" expanded="true" />
1203
+          </folding>
1204
+        </state>
1205
+      </provider>
1206
+    </entry>
1207
+    <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
1208
+      <provider selected="true" editor-type-id="text-editor">
1209
+        <state vertical-scroll-proportion="0.28544775">
1210
+          <caret line="51" column="32" selection-start-line="51" selection-start-column="32" selection-end-line="51" selection-end-column="32" />
1260
           <folding>
1211
           <folding>
1261
             <element signature="imports" expanded="true" />
1212
             <element signature="imports" expanded="true" />
1213
+            <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1214
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1215
+            <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1216
+            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1217
+            <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1262
           </folding>
1218
           </folding>
1263
         </state>
1219
         </state>
1264
       </provider>
1220
       </provider>

BIN
java/out/production/java/GestionReponses.class View File


BIN
java/rsc/edit.png View File


+ 77
- 0
java/src/ConnexionBddDialog.java View File

1
+import javax.swing.*;
2
+import java.awt.*;
3
+import java.awt.event.ActionEvent;
4
+import java.awt.event.ActionListener;
5
+import java.text.NumberFormat;
6
+
7
+import static javax.swing.BoxLayout.Y_AXIS;
8
+
9
+public class ConnexionBddDialog extends JDialog implements ActionListener
10
+{
11
+	private JTextField nomBdd;
12
+	private JFormattedTextField port;
13
+	private JTextField ip;
14
+	private JTextField login;
15
+	private JPasswordField password;
16
+	private JButton ok;
17
+	private JButton annuler;
18
+	private JButton defParams;
19
+	private boolean modifEffectuees;
20
+
21
+	public ConnexionBddDialog(String nomBdd, int port, String ip, String login, String password, Dialog owner)
22
+	{
23
+		super(owner, "Paramétres BDD", true);
24
+		createInterface(nomBdd, port, ip, login, password);
25
+		pack();
26
+		setLocationRelativeTo(null);
27
+		setResizable(false);
28
+	}
29
+
30
+	private void createInterface(String defNomBdd, int defPort, String defIP, String defLogin, String defPassword)
31
+	{
32
+		nomBdd = new JTextField(defNomBdd, 40);
33
+		port = new JFormattedTextField(NumberFormat.getInstance());
34
+		port.setValue(defPort);
35
+		ip = new JTextField(defIP, 40);
36
+		login = new JTextField(defLogin, 40);
37
+		password = new JPasswordField(defPassword, 40);
38
+
39
+		ok = new JButton("OK");
40
+		annuler = new JButton("Annuler");
41
+		defParams = new JButton("Paramétres de connexion par défault");
42
+
43
+		JPanel fieldPanel = new JPanel();
44
+		JPanel boutons = new JPanel();
45
+		fieldPanel.setLayout(new GridLayout(5, 2));
46
+
47
+		fieldPanel.add(new JLabel("Nom de la base de données:"));
48
+		fieldPanel.add(nomBdd);
49
+		fieldPanel.add(new JLabel("Numéro de port:"));
50
+		fieldPanel.add(port);
51
+		fieldPanel.add(new JLabel("Adresse IP du serveur:"));
52
+		fieldPanel.add(ip);
53
+		fieldPanel.add(new JLabel("Login utilisateur:"));
54
+		fieldPanel.add(login);
55
+		fieldPanel.add(new JLabel("Mot de passe utilisateur:"));
56
+		fieldPanel.add(password);
57
+
58
+		boutons.add(annuler);
59
+		boutons.add(defParams);
60
+		boutons.add(ok);
61
+
62
+		getContentPane().add(fieldPanel, BorderLayout.CENTER);
63
+		getContentPane().add(boutons, BorderLayout.SOUTH);
64
+	}
65
+
66
+	public boolean afficher()
67
+	{
68
+		setVisible(true);
69
+		return modifEffectuees;
70
+	}
71
+
72
+	public void actionPerformed(ActionEvent actionEvent)
73
+	{
74
+		modifEffectuees = false;
75
+		setVisible(false);
76
+	}
77
+}

+ 3
- 0
java/src/InterfacePrincipale.java View File

38
 	private ImageIcon plusImg;
38
 	private ImageIcon plusImg;
39
 	private ImageIcon delImg;
39
 	private ImageIcon delImg;
40
 	private ImageIcon editImg;
40
 	private ImageIcon editImg;
41
+	private ImageIcon setupImg;
41
 
42
 
42
 	//barre de statut
43
 	//barre de statut
43
 	private JPanel statusBar;
44
 	private JPanel statusBar;
48
 
49
 
49
 	public InterfacePrincipale()
50
 	public InterfacePrincipale()
50
 	{
51
 	{
52
+		ConnexionBddDialog cbddd = new ConnexionBddDialog("efr",85,"42:42:42:42","eflgr","fmr,grgerge",null);
51
 		bdd = new ConnexionBDD("burgerquizz", 3306, "localhost", "alain", "chabat");
53
 		bdd = new ConnexionBDD("burgerquizz", 3306, "localhost", "alain", "chabat");
52
 
54
 
53
 		setTitle("Administration base de données de l'aplication BurgerQuizz");
55
 		setTitle("Administration base de données de l'aplication BurgerQuizz");
96
 		plusImg = new ImageIcon("rsc/plus.png");
98
 		plusImg = new ImageIcon("rsc/plus.png");
97
 		delImg = new ImageIcon("rsc/del.png");
99
 		delImg = new ImageIcon("rsc/del.png");
98
 		editImg = new ImageIcon("rsc/edit.png");
100
 		editImg = new ImageIcon("rsc/edit.png");
101
+		setupImg = new ImageIcon("rsc/cle.png");
99
 	}
102
 	}
100
 
103
 
101
 	private void createStatusBar()
104
 	private void createStatusBar()