PCYoshi 9 anos atrás
pai
commit
76778db531

+ 52
- 53
java/.idea/workspace.xml Ver arquivo

@@ -7,10 +7,12 @@
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="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" />
10
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanQuestionsListener.class" afterPath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanQuestionsListener.class" />
11
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanReponsesListener.class" afterPath="$PROJECT_DIR$/out/production/java/InterfacePrincipale$PanReponsesListener.class" />
12
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/ConnexionBddDialog.java" afterPath="$PROJECT_DIR$/src/ConnexionBddDialog.java" />
13 13
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfacePrincipale.java" afterPath="$PROJECT_DIR$/src/InterfacePrincipale.java" />
14
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" afterPath="$PROJECT_DIR$/src/NouvelleQuestionDialog.java" />
15
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/NouvelleReponseDialog.java" afterPath="$PROJECT_DIR$/src/NouvelleReponseDialog.java" />
14 16
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
15 17
     </list>
16 18
     <ignored path="java.iws" />
@@ -36,12 +38,11 @@
36 38
       <file leaf-file-name="InterfacePrincipale.java" pinned="false" current-in-tab="true">
37 39
         <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
38 40
           <provider selected="true" editor-type-id="text-editor">
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" />
41
+            <state vertical-scroll-proportion="0.660221">
42
+              <caret line="118" column="55" selection-start-line="118" selection-start-column="55" selection-end-line="118" selection-end-column="55" />
41 43
               <folding>
42 44
                 <element signature="imports" expanded="true" />
43 45
                 <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
44
-                <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
45 46
                 <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
46 47
                 <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
47 48
                 <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
@@ -50,11 +51,11 @@
50 51
           </provider>
51 52
         </entry>
52 53
       </file>
53
-      <file leaf-file-name="ConnexionBDD.java" pinned="false" current-in-tab="false">
54
-        <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
54
+      <file leaf-file-name="ConnexionBddDialog.java" pinned="false" current-in-tab="false">
55
+        <entry file="file://$PROJECT_DIR$/src/ConnexionBddDialog.java">
55 56
           <provider selected="true" editor-type-id="text-editor">
56 57
             <state vertical-scroll-proportion="0.0">
57
-              <caret line="39" column="74" selection-start-line="39" selection-start-column="74" selection-end-line="39" selection-end-column="74" />
58
+              <caret line="38" column="0" selection-start-line="38" selection-start-column="0" selection-end-line="38" selection-end-column="0" />
58 59
               <folding>
59 60
                 <element signature="imports" expanded="true" />
60 61
               </folding>
@@ -62,29 +63,29 @@
62 63
           </provider>
63 64
         </entry>
64 65
       </file>
65
-      <file leaf-file-name="ConnexionBddDialog.java" pinned="false" current-in-tab="false">
66
-        <entry file="file://$PROJECT_DIR$/src/ConnexionBddDialog.java">
66
+      <file leaf-file-name="NouvelleQuestionDialog.java" pinned="false" current-in-tab="false">
67
+        <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
67 68
           <provider selected="true" editor-type-id="text-editor">
68 69
             <state vertical-scroll-proportion="0.0">
69
-              <caret line="74" column="24" selection-start-line="74" selection-start-column="24" selection-end-line="74" selection-end-column="24" />
70
+              <caret line="16" column="31" selection-start-line="16" selection-start-column="31" selection-end-line="16" selection-end-column="31" />
70 71
               <folding>
71 72
                 <element signature="imports" expanded="true" />
73
+                <element signature="e#2002#2003#0" expanded="true" />
74
+                <element signature="e#2034#2035#0" expanded="true" />
75
+                <element signature="e#2062#2063#0" expanded="true" />
76
+                <element signature="e#2102#2103#0" expanded="true" />
72 77
               </folding>
73 78
             </state>
74 79
           </provider>
75 80
         </entry>
76 81
       </file>
77
-      <file leaf-file-name="NouvelleQuestionDialog.java" pinned="false" current-in-tab="false">
78
-        <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
82
+      <file leaf-file-name="ConnexionBDD.java" pinned="false" current-in-tab="false">
83
+        <entry file="file://$PROJECT_DIR$/src/ConnexionBDD.java">
79 84
           <provider selected="true" editor-type-id="text-editor">
80 85
             <state vertical-scroll-proportion="0.0">
81
-              <caret line="53" column="58" selection-start-line="53" selection-start-column="58" selection-end-line="53" selection-end-column="58" />
86
+              <caret line="39" column="74" selection-start-line="39" selection-start-column="74" selection-end-line="39" selection-end-column="74" />
82 87
               <folding>
83 88
                 <element signature="imports" expanded="true" />
84
-                <element signature="e#1976#1977#0" expanded="true" />
85
-                <element signature="e#2008#2009#0" expanded="true" />
86
-                <element signature="e#2036#2037#0" expanded="true" />
87
-                <element signature="e#2076#2077#0" expanded="true" />
88 89
               </folding>
89 90
             </state>
90 91
           </provider>
@@ -716,7 +717,13 @@
716 717
       <option name="project" value="LOCAL" />
717 718
       <updated>1433258901442</updated>
718 719
     </task>
719
-    <option name="localTasksCounter" value="22" />
720
+    <task id="LOCAL-00022" summary="dialogu co bdd">
721
+      <created>1433340153817</created>
722
+      <option name="number" value="00022" />
723
+      <option name="project" value="LOCAL" />
724
+      <updated>1433340153817</updated>
725
+    </task>
726
+    <option name="localTasksCounter" value="23" />
720 727
     <servers />
721 728
   </component>
722 729
   <component name="TodoView">
@@ -730,7 +737,7 @@
730 737
   </component>
731 738
   <component name="ToolWindowManager">
732 739
     <frame x="-1" y="27" width="1368" height="712" extended-state="6" />
733
-    <editor active="true" />
740
+    <editor active="false" />
734 741
     <layout>
735 742
       <window_info id="Palette&#9;" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
736 743
       <window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
@@ -741,14 +748,14 @@
741 748
       <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" />
742 749
       <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" />
743 750
       <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" />
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" />
751
+      <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" />
745 752
       <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" />
746 753
       <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" />
747 754
       <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" />
748 755
       <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" />
749 756
       <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" />
750 757
       <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" />
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" />
758
+      <window_info id="Run" active="false" 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" />
752 759
       <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" />
753 760
       <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 761
       <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" />
@@ -788,7 +795,8 @@
788 795
     <MESSAGE value="++ gestion reponsesV3" />
789 796
     <MESSAGE value="++ gestion reponsesV4" />
790 797
     <MESSAGE value="++ gestion reponsesV5" />
791
-    <option name="LAST_COMMIT_MESSAGE" value="++ gestion reponsesV5" />
798
+    <MESSAGE value="dialogu co bdd" />
799
+    <option name="LAST_COMMIT_MESSAGE" value="dialogu co bdd" />
792 800
   </component>
793 801
   <component name="XDebuggerManager">
794 802
     <breakpoint-manager>
@@ -832,7 +840,6 @@
832 840
           <folding>
833 841
             <element signature="imports" expanded="true" />
834 842
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
835
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
836 843
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
837 844
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
838 845
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
@@ -871,7 +878,6 @@
871 878
           <folding>
872 879
             <element signature="imports" expanded="true" />
873 880
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
874
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
875 881
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
876 882
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
877 883
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
@@ -910,7 +916,6 @@
910 916
           <folding>
911 917
             <element signature="imports" expanded="true" />
912 918
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
913
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
914 919
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
915 920
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
916 921
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
@@ -949,7 +954,6 @@
949 954
           <folding>
950 955
             <element signature="imports" expanded="true" />
951 956
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
952
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
953 957
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
954 958
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
955 959
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
@@ -988,7 +992,6 @@
988 992
           <folding>
989 993
             <element signature="imports" expanded="true" />
990 994
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
991
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
992 995
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
993 996
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
994 997
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
@@ -1048,7 +1051,6 @@
1048 1051
           <folding>
1049 1052
             <element signature="imports" expanded="true" />
1050 1053
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1051
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1052 1054
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1053 1055
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1054 1056
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
@@ -1109,9 +1111,9 @@
1109 1111
         <state vertical-scroll-proportion="2.4738805">
1110 1112
           <caret line="93" column="38" selection-start-line="93" selection-start-column="38" selection-end-line="93" selection-end-column="38" />
1111 1113
           <folding>
1112
-            <element signature="imports" expanded="true" />
1113
-            <element signature="e#2160#2161#0" expanded="true" />
1114
-            <element signature="e#2188#2189#0" expanded="true" />
1114
+            <element signature="imports" expanded="false" />
1115
+            <element signature="e#2160#2161#0" expanded="false" />
1116
+            <element signature="e#2188#2189#0" expanded="false" />
1115 1117
           </folding>
1116 1118
         </state>
1117 1119
       </provider>
@@ -1141,9 +1143,9 @@
1141 1143
         <state vertical-scroll-proportion="0.0">
1142 1144
           <caret line="84" column="28" selection-start-line="84" selection-start-column="28" selection-end-line="84" selection-end-column="28" />
1143 1145
           <folding>
1144
-            <element signature="imports" expanded="true" />
1145
-            <element signature="e#2627#2628#0" expanded="true" />
1146
-            <element signature="e#2653#2654#0" expanded="true" />
1146
+            <element signature="imports" expanded="false" />
1147
+            <element signature="e#2627#2628#0" expanded="false" />
1148
+            <element signature="e#2653#2654#0" expanded="false" />
1147 1149
           </folding>
1148 1150
         </state>
1149 1151
       </provider>
@@ -1153,20 +1155,18 @@
1153 1155
         <state vertical-scroll-proportion="0.0">
1154 1156
           <caret line="89" column="36" selection-start-line="89" selection-start-column="36" selection-end-line="89" selection-end-column="36" />
1155 1157
           <folding>
1156
-            <element signature="imports" expanded="true" />
1157
-            <element signature="e#2985#2986#0" expanded="true" />
1158
-            <element signature="e#3013#3014#0" expanded="true" />
1158
+            <element signature="imports" expanded="false" />
1159
+            <element signature="e#2985#2986#0" expanded="false" />
1160
+            <element signature="e#3013#3014#0" expanded="false" />
1159 1161
           </folding>
1160 1162
         </state>
1161 1163
       </provider>
1162 1164
     </entry>
1163 1165
     <entry file="file://$PROJECT_DIR$/src/NouvelleReponseDialog.java">
1164 1166
       <provider selected="true" editor-type-id="text-editor">
1165
-        <state vertical-scroll-proportion="0.0">
1166
-          <caret line="20" column="28" selection-start-line="20" selection-start-column="28" selection-end-line="20" selection-end-column="28" />
1167
-          <folding>
1168
-            <element signature="imports" expanded="true" />
1169
-          </folding>
1167
+        <state vertical-scroll-proportion="0.31716418">
1168
+          <caret line="17" column="31" selection-start-line="17" selection-start-column="31" selection-end-line="17" selection-end-column="31" />
1169
+          <folding />
1170 1170
         </state>
1171 1171
       </provider>
1172 1172
     </entry>
@@ -1183,13 +1183,13 @@
1183 1183
     <entry file="file://$PROJECT_DIR$/src/NouvelleQuestionDialog.java">
1184 1184
       <provider selected="true" editor-type-id="text-editor">
1185 1185
         <state vertical-scroll-proportion="0.0">
1186
-          <caret line="53" column="58" selection-start-line="53" selection-start-column="58" selection-end-line="53" selection-end-column="58" />
1186
+          <caret line="16" column="31" selection-start-line="16" selection-start-column="31" selection-end-line="16" selection-end-column="31" />
1187 1187
           <folding>
1188 1188
             <element signature="imports" expanded="true" />
1189
-            <element signature="e#1976#1977#0" expanded="true" />
1190
-            <element signature="e#2008#2009#0" expanded="true" />
1191
-            <element signature="e#2036#2037#0" expanded="true" />
1192
-            <element signature="e#2076#2077#0" expanded="true" />
1189
+            <element signature="e#2002#2003#0" expanded="true" />
1190
+            <element signature="e#2034#2035#0" expanded="true" />
1191
+            <element signature="e#2062#2063#0" expanded="true" />
1192
+            <element signature="e#2102#2103#0" expanded="true" />
1193 1193
           </folding>
1194 1194
         </state>
1195 1195
       </provider>
@@ -1197,7 +1197,7 @@
1197 1197
     <entry file="file://$PROJECT_DIR$/src/ConnexionBddDialog.java">
1198 1198
       <provider selected="true" editor-type-id="text-editor">
1199 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" />
1200
+          <caret line="38" column="0" selection-start-line="38" selection-start-column="0" selection-end-line="38" selection-end-column="0" />
1201 1201
           <folding>
1202 1202
             <element signature="imports" expanded="true" />
1203 1203
           </folding>
@@ -1206,12 +1206,11 @@
1206 1206
     </entry>
1207 1207
     <entry file="file://$PROJECT_DIR$/src/InterfacePrincipale.java">
1208 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" />
1209
+        <state vertical-scroll-proportion="0.660221">
1210
+          <caret line="118" column="55" selection-start-line="118" selection-start-column="55" selection-end-line="118" selection-end-column="55" />
1211 1211
           <folding>
1212 1212
             <element signature="imports" expanded="true" />
1213 1213
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1214
-            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1215 1214
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1216 1215
             <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1217 1216
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />

BIN
java/out/production/java/InterfacePrincipale$PanQuestionsListener.class Ver arquivo


BIN
java/out/production/java/InterfacePrincipale$PanReponsesListener.class Ver arquivo


BIN
java/rsc/burgerquizz.png Ver arquivo


+ 17
- 6
java/src/ConnexionBddDialog.java Ver arquivo

@@ -18,9 +18,10 @@ public class ConnexionBddDialog extends JDialog implements ActionListener
18 18
 	private JButton defParams;
19 19
 	private boolean modifEffectuees;
20 20
 
21
-	public ConnexionBddDialog(String nomBdd, int port, String ip, String login, String password, Dialog owner)
21
+	public ConnexionBddDialog(String nomBdd, int port, String ip, String login, String password, JFrame parent)
22 22
 	{
23
-		super(owner, "Paramétres BDD", true);
23
+		super(parent, "Paramétres BDD", true);
24
+		modifEffectuees = false;
24 25
 		createInterface(nomBdd, port, ip, login, password);
25 26
 		pack();
26 27
 		setLocationRelativeTo(null);
@@ -29,17 +30,27 @@ public class ConnexionBddDialog extends JDialog implements ActionListener
29 30
 
30 31
 	private void createInterface(String defNomBdd, int defPort, String defIP, String defLogin, String defPassword)
31 32
 	{
32
-		nomBdd = new JTextField(defNomBdd, 40);
33
+		nomBdd = new JTextField(defNomBdd, 30);
33 34
 		port = new JFormattedTextField(NumberFormat.getInstance());
34 35
 		port.setValue(defPort);
35
-		ip = new JTextField(defIP, 40);
36
-		login = new JTextField(defLogin, 40);
37
-		password = new JPasswordField(defPassword, 40);
36
+		ip = new JTextField(defIP, 30);
37
+		login = new JTextField(defLogin, 30);
38
+		password = new JPasswordField(defPassword, 30);
39
+
40
+		nomBdd.setBackground(Color.WHITE);
41
+		port.setBackground(Color.WHITE);
42
+		ip.setBackground(Color.WHITE);
43
+		login.setBackground(Color.WHITE);
44
+		password.setBackground(Color.WHITE);
38 45
 
39 46
 		ok = new JButton("OK");
40 47
 		annuler = new JButton("Annuler");
41 48
 		defParams = new JButton("Paramétres de connexion par défault");
42 49
 
50
+		ok.addActionListener(this);
51
+		annuler.addActionListener(this);
52
+		defParams.addActionListener(this);
53
+
43 54
 		JPanel fieldPanel = new JPanel();
44 55
 		JPanel boutons = new JPanel();
45 56
 		fieldPanel.setLayout(new GridLayout(5, 2));

+ 13
- 3
java/src/InterfacePrincipale.java Ver arquivo

@@ -43,13 +43,15 @@ public class InterfacePrincipale extends JFrame
43 43
 	//barre de statut
44 44
 	private JPanel statusBar;
45 45
 	private JLabel statusText;
46
+	private Bouton config;
46 47
 
47 48
 	//objet bdd
48 49
 	private ConnexionBDD bdd;
49 50
 
50 51
 	public InterfacePrincipale()
51 52
 	{
52
-		ConnexionBddDialog cbddd = new ConnexionBddDialog("efr",85,"42:42:42:42","eflgr","fmr,grgerge",null);
53
+		ConnexionBddDialog cbddd = new ConnexionBddDialog("efr",85,"42:42:42:42","eflgr","fmr,grgerge", null);
54
+		cbddd.afficher();
53 55
 		bdd = new ConnexionBDD("burgerquizz", 3306, "localhost", "alain", "chabat");
54 56
 
55 57
 		setTitle("Administration base de données de l'aplication BurgerQuizz");
@@ -103,13 +105,21 @@ public class InterfacePrincipale extends JFrame
103 105
 
104 106
 	private void createStatusBar()
105 107
 	{
106
-		statusBar = new JPanel();
108
+		statusBar = new JPanel(new BorderLayout());
107 109
 		statusText = new JLabel("Application demarrée, connexion à la base de donné effective. ");
108 110
 
109 111
 		Border border = BorderFactory.createMatteBorder(3,0,0,0, new Color(220,220,220));
110 112
 		statusBar.setBorder(BorderFactory.createCompoundBorder(BorderFactory.createEmptyBorder(10,70,5,70),border));
111 113
 
112
-		statusBar.add(statusText);
114
+		config = new Bouton("Configuration", setupImg);
115
+		config.setPreferredSize(new Dimension(250, 34));
116
+		JPanel p = new JPanel();
117
+		p.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
118
+
119
+		statusBar.add(statusText, BorderLayout.CENTER);
120
+		p.add(config, BorderLayout.EAST);
121
+		statusBar.add(p, BorderLayout.EAST);
122
+		//statusBar.add(config, BorderLayout.EAST);
113 123
 	}
114 124
 
115 125
 	private void createPanelCategories()

+ 1
- 0
java/src/NouvelleQuestionDialog.java Ver arquivo

@@ -14,6 +14,7 @@ public class NouvelleQuestionDialog extends JDialog implements ActionListener
14 14
 	public NouvelleQuestionDialog(String title, String defIntitule, int defReponse, String reponse1, String reponse2, JFrame parent)
15 15
 	{
16 16
 		super(parent, title, true);
17
+		mofidEffectues = false;
17 18
 		createInterface(defIntitule, defReponse, reponse1, reponse2);
18 19
 		pack();
19 20
 		setLocationRelativeTo(null);

+ 1
- 0
java/src/NouvelleReponseDialog.java Ver arquivo

@@ -15,6 +15,7 @@ public class NouvelleReponseDialog extends JDialog implements ActionListener
15 15
 	public NouvelleReponseDialog(String title, String defRep1, String defRep2, String defCategorie, String[] tabCategorie,JFrame parent)
16 16
 	{
17 17
 		super(parent, title, true);
18
+		mofidEffectues = false;
18 19
 		createInterface(defRep1, defRep2, defCategorie, tabCategorie);
19 20
 		pack();
20 21
 		setLocationRelativeTo(null);