Bladeren bron

grisgae panneaux opérationel

PCYoshi 9 jaren geleden
bovenliggende
commit
53132e1294

+ 175
- 102
java/.idea/workspace.xml Bestand weergeven

@@ -6,9 +6,9 @@
6 6
     </artifacts-to-build>
7 7
   </component>
8 8
   <component name="ChangeListManager">
9
-    <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="barre de statut opérationelle">
9
+    <list default="true" id="a647cb6a-4230-4101-a652-d7cfd0c21e24" name="Default" comment="">
10
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" />
10 11
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" afterPath="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" />
11
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/src/Modele/Question.java" afterPath="$PROJECT_DIR$/src/Modele/Question.java" />
12 12
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/.idea/workspace.xml" afterPath="$PROJECT_DIR$/.idea/workspace.xml" />
13 13
     </list>
14 14
     <ignored path="java.iws" />
@@ -34,64 +34,43 @@
34 34
       <file leaf-file-name="InterfacePrincipale.java" pinned="false" current-in-tab="false">
35 35
         <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java">
36 36
           <provider selected="true" editor-type-id="text-editor">
37
-            <state vertical-scroll-proportion="-4.9117646">
38
-              <caret line="479" column="24" selection-start-line="479" selection-start-column="20" selection-end-line="479" selection-end-column="24" />
37
+            <state vertical-scroll-proportion="-4.5882354">
38
+              <caret line="81" column="8" selection-start-line="81" selection-start-column="8" selection-end-line="81" selection-end-column="8" />
39 39
               <folding>
40
-                <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
41 40
                 <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
41
+                <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
42 42
                 <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
43 43
                 <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
44 44
                 <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
45
-                <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
46 45
                 <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
47 46
                 <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
48 47
                 <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
49 48
                 <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
50 49
                 <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
50
+                <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
51
+                <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
52
+                <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
53
+                <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
54
+                <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
51 55
                 <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
56
+                <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
57
+                <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
58
+                <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
59
+                <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
60
+                <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
61
+                <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
62
+                <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
63
+                <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
52 64
               </folding>
53 65
             </state>
54 66
           </provider>
55 67
         </entry>
56 68
       </file>
57
-      <file leaf-file-name="Question.java" pinned="false" current-in-tab="true">
58
-        <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
69
+      <file leaf-file-name="SplashScreen.java" pinned="false" current-in-tab="true">
70
+        <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java">
59 71
           <provider selected="true" editor-type-id="text-editor">
60
-            <state vertical-scroll-proportion="0.6243094">
61
-              <caret line="63" column="30" selection-start-line="63" selection-start-column="30" selection-end-line="63" selection-end-column="30" />
62
-              <folding />
63
-            </state>
64
-          </provider>
65
-        </entry>
66
-      </file>
67
-      <file leaf-file-name="BDDException.java" pinned="false" current-in-tab="false">
68
-        <entry file="file://$PROJECT_DIR$/src/GestionErreurs/BDDException.java">
69
-          <provider selected="true" editor-type-id="text-editor">
70
-            <state vertical-scroll-proportion="0.0">
71
-              <caret line="8" column="1" selection-start-line="8" selection-start-column="1" selection-end-line="8" selection-end-column="1" />
72
-              <folding>
73
-                <element signature="e#109#110#0" expanded="true" />
74
-                <element signature="e#130#131#0" expanded="true" />
75
-              </folding>
76
-            </state>
77
-          </provider>
78
-        </entry>
79
-      </file>
80
-      <file leaf-file-name="ConnexionBDD.java" pinned="false" current-in-tab="false">
81
-        <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java">
82
-          <provider selected="true" editor-type-id="text-editor">
83
-            <state vertical-scroll-proportion="0.0">
84
-              <caret line="41" column="0" selection-start-line="41" selection-start-column="0" selection-end-line="41" selection-end-column="0" />
85
-              <folding />
86
-            </state>
87
-          </provider>
88
-        </entry>
89
-      </file>
90
-      <file leaf-file-name="GestionCategories.java" pinned="false" current-in-tab="false">
91
-        <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/GestionCategories.java">
92
-          <provider selected="true" editor-type-id="text-editor">
93
-            <state vertical-scroll-proportion="0.0">
94
-              <caret line="83" column="44" selection-start-line="83" selection-start-column="44" selection-end-line="83" selection-end-column="44" />
72
+            <state vertical-scroll-proportion="0.08563536">
73
+              <caret line="32" column="67" selection-start-line="32" selection-start-column="67" selection-end-line="32" selection-end-column="67" />
95 74
               <folding>
96 75
                 <element signature="imports" expanded="true" />
97 76
               </folding>
@@ -143,7 +122,6 @@
143 122
         <option value="$PROJECT_DIR$/src/Modele/ConfigBDD.java" />
144 123
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java" />
145 124
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/Bouton.java" />
146
-        <option value="$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java" />
147 125
         <option value="$PROJECT_DIR$/src/GestionBddDAO/ConfigBDD.java" />
148 126
         <option value="$PROJECT_DIR$/src/InterfaceGraphique/BDDException.java" />
149 127
         <option value="$PROJECT_DIR$/src/BDDException.java" />
@@ -153,8 +131,10 @@
153 131
         <option value="$PROJECT_DIR$/src/GestionBddDAO/GestionReponses.java" />
154 132
         <option value="$PROJECT_DIR$/src/GestionErreurs/BDDException.java" />
155 133
         <option value="$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java" />
156
-        <option value="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" />
157 134
         <option value="$PROJECT_DIR$/src/Modele/Question.java" />
135
+        <option value="$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java" />
136
+        <option value="$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java" />
137
+        <option value="$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java" />
158 138
       </list>
159 139
     </option>
160 140
   </component>
@@ -914,7 +894,13 @@
914 894
       <option name="project" value="LOCAL" />
915 895
       <updated>1433777166215</updated>
916 896
     </task>
917
-    <option name="localTasksCounter" value="33" />
897
+    <task id="LOCAL-00033" summary="grisgae panneaux opérationel">
898
+      <created>1433790020713</created>
899
+      <option name="number" value="00033" />
900
+      <option name="project" value="LOCAL" />
901
+      <updated>1433790020713</updated>
902
+    </task>
903
+    <option name="localTasksCounter" value="34" />
918 904
     <servers />
919 905
   </component>
920 906
   <component name="TodoView">
@@ -935,21 +921,21 @@
935 921
       <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" />
936 922
       <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" />
937 923
       <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="4" side_tool="false" content_ui="tabs" />
924
+      <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" />
938 925
       <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" />
939 926
       <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.427065" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
940
-      <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" />
927
+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.30579966" sideWeight="0.5045593" order="11" side_tool="false" content_ui="tabs" />
941 928
       <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" />
942
-      <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" />
929
+      <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="9" side_tool="false" content_ui="tabs" />
943 930
       <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="5" side_tool="false" content_ui="tabs" />
944
-      <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" />
931
+      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32864675" sideWeight="0.5" order="8" side_tool="false" content_ui="tabs" />
945 932
       <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" />
946 933
       <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" />
947
-      <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" />
934
+      <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="10" side_tool="false" content_ui="tabs" />
948 935
       <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" />
949
-      <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="6" side_tool="false" content_ui="tabs" />
936
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.30579966" sideWeight="0.49544072" order="6" side_tool="false" content_ui="tabs" />
950 937
       <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="2" side_tool="false" content_ui="tabs" />
951 938
       <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" />
952
-      <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" />
953 939
       <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" />
954 940
       <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="3" side_tool="false" content_ui="tabs" />
955 941
       <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" />
@@ -967,7 +953,6 @@
967 953
     <option name="myLimit" value="2678400000" />
968 954
   </component>
969 955
   <component name="VcsManagerConfiguration">
970
-    <MESSAGE value="+mieux l'interface et easter egg ajouté" />
971 956
     <MESSAGE value="fin de journé" />
972 957
     <MESSAGE value="nyan cat operationel + look n felle susteme ajouté + chgm couleur" />
973 958
     <MESSAGE value="les boutons ecoutent" />
@@ -992,14 +977,15 @@
992 977
     <MESSAGE value="Si tu lis ce message, c'est que tu sait lire." />
993 978
     <MESSAGE value="f,ekgfnje" />
994 979
     <MESSAGE value="barre de statut opérationelle" />
995
-    <option name="LAST_COMMIT_MESSAGE" value="barre de statut opérationelle" />
980
+    <MESSAGE value="grisgae panneaux opérationel" />
981
+    <option name="LAST_COMMIT_MESSAGE" value="grisgae panneaux opérationel" />
996 982
   </component>
997 983
   <component name="XDebuggerManager">
998 984
     <breakpoint-manager>
999 985
       <breakpoints-dialog>
1000 986
         <breakpoints-dialog />
1001 987
       </breakpoints-dialog>
1002
-      <option name="time" value="35" />
988
+      <option name="time" value="36" />
1003 989
     </breakpoint-manager>
1004 990
     <watches-manager />
1005 991
   </component>
@@ -1008,13 +994,6 @@
1008 994
     <option name="FILTER_TARGETS" value="false" />
1009 995
   </component>
1010 996
   <component name="editorHistoryManager">
1011
-    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/DialogBoxes/ConnexionBddDialog.java">
1012
-      <provider selected="true" editor-type-id="text-editor">
1013
-        <state vertical-scroll-proportion="0.0">
1014
-          <caret line="107" column="143" selection-start-line="107" selection-start-column="143" selection-end-line="107" selection-end-column="143" />
1015
-        </state>
1016
-      </provider>
1017
-    </entry>
1018 997
     <entry file="file://$PROJECT_DIR$/mcd.png">
1019 998
       <provider selected="true" editor-type-id="images">
1020 999
         <state />
@@ -1030,18 +1009,30 @@
1030 1009
         <state vertical-scroll-proportion="0.0">
1031 1010
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1032 1011
           <folding>
1033
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1034 1012
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1013
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1035 1014
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1036 1015
             <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1037 1016
             <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1038
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1039 1017
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1040 1018
             <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1041 1019
             <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1042 1020
             <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1043 1021
             <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
1022
+            <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1023
+            <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1024
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1025
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1026
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1044 1027
             <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1028
+            <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1029
+            <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1030
+            <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1031
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1032
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1033
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1034
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1035
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1045 1036
           </folding>
1046 1037
         </state>
1047 1038
       </provider>
@@ -1075,18 +1066,30 @@
1075 1066
         <state vertical-scroll-proportion="0.0">
1076 1067
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1077 1068
           <folding>
1078
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1079 1069
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1070
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1080 1071
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1081 1072
             <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1082 1073
             <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1083
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1084 1074
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1085 1075
             <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1086 1076
             <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1087 1077
             <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1088 1078
             <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
1079
+            <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1080
+            <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1081
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1082
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1083
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1089 1084
             <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1085
+            <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1086
+            <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1087
+            <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1088
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1089
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1090
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1091
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1092
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1090 1093
           </folding>
1091 1094
         </state>
1092 1095
       </provider>
@@ -1120,18 +1123,30 @@
1120 1123
         <state vertical-scroll-proportion="0.0">
1121 1124
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1122 1125
           <folding>
1123
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1124 1126
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1127
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1125 1128
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1126 1129
             <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1127 1130
             <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1128
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1129 1131
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1130 1132
             <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1131 1133
             <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1132 1134
             <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1133 1135
             <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
1136
+            <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1137
+            <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1138
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1139
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1140
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1134 1141
             <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1142
+            <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1143
+            <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1144
+            <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1145
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1146
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1147
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1148
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1149
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1135 1150
           </folding>
1136 1151
         </state>
1137 1152
       </provider>
@@ -1165,18 +1180,30 @@
1165 1180
         <state vertical-scroll-proportion="0.0">
1166 1181
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1167 1182
           <folding>
1168
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1169 1183
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1184
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1170 1185
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1171 1186
             <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1172 1187
             <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1173
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1174 1188
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1175 1189
             <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1176 1190
             <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1177 1191
             <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1178 1192
             <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
1193
+            <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1194
+            <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1195
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1196
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1197
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1179 1198
             <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1199
+            <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1200
+            <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1201
+            <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1202
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1203
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1204
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1205
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1206
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1180 1207
           </folding>
1181 1208
         </state>
1182 1209
       </provider>
@@ -1210,18 +1237,30 @@
1210 1237
         <state vertical-scroll-proportion="0.0">
1211 1238
           <caret line="0" column="0" selection-start-line="0" selection-start-column="0" selection-end-line="0" selection-end-column="0" />
1212 1239
           <folding>
1213
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1214 1240
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1241
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1215 1242
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1216 1243
             <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1217 1244
             <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1218
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1219 1245
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1220 1246
             <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1221 1247
             <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1222 1248
             <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1223 1249
             <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
1250
+            <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1251
+            <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1252
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1253
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1254
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1224 1255
             <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1256
+            <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1257
+            <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1258
+            <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1259
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1260
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1261
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1262
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1263
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1225 1264
           </folding>
1226 1265
         </state>
1227 1266
       </provider>
@@ -1276,18 +1315,30 @@
1276 1315
         <state vertical-scroll-proportion="0.0">
1277 1316
           <caret line="0" column="21" selection-start-line="0" selection-start-column="21" selection-end-line="0" selection-end-column="21" />
1278 1317
           <folding>
1279
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1280 1318
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1319
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1281 1320
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1282 1321
             <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1283 1322
             <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1284
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1285 1323
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1286 1324
             <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1287 1325
             <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1288 1326
             <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1289 1327
             <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
1328
+            <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1329
+            <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1330
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1331
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1332
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1290 1333
             <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1334
+            <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1335
+            <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1336
+            <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1337
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1338
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1339
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1340
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1341
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1291 1342
           </folding>
1292 1343
         </state>
1293 1344
       </provider>
@@ -1324,13 +1375,6 @@
1324 1375
         </state>
1325 1376
       </provider>
1326 1377
     </entry>
1327
-    <entry file="file://$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java">
1328
-      <provider selected="true" editor-type-id="text-editor">
1329
-        <state vertical-scroll-proportion="0.7044199">
1330
-          <caret line="15" column="43" selection-start-line="15" selection-start-column="43" selection-end-line="15" selection-end-column="43" />
1331
-        </state>
1332
-      </provider>
1333
-    </entry>
1334 1378
     <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/ConfigBDD.java">
1335 1379
       <provider selected="true" editor-type-id="text-editor">
1336 1380
         <state vertical-scroll-proportion="-2.3283582">
@@ -1393,59 +1437,88 @@
1393 1437
         </state>
1394 1438
       </provider>
1395 1439
     </entry>
1396
-    <entry file="file://$PROJECT_DIR$/src/GestionErreurs/BDDException.java">
1440
+    <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
1397 1441
       <provider selected="true" editor-type-id="text-editor">
1398 1442
         <state vertical-scroll-proportion="0.0">
1399
-          <caret line="8" column="1" selection-start-line="8" selection-start-column="1" selection-end-line="8" selection-end-column="1" />
1443
+          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
1444
+          <folding />
1445
+        </state>
1446
+      </provider>
1447
+    </entry>
1448
+    <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
1449
+      <provider selected="true" editor-type-id="text-editor">
1450
+        <state vertical-scroll-proportion="1.0149254">
1451
+          <caret line="48" column="29" selection-start-line="48" selection-start-column="29" selection-end-line="48" selection-end-column="29" />
1400 1452
           <folding>
1401
-            <element signature="e#109#110#0" expanded="true" />
1402
-            <element signature="e#130#131#0" expanded="true" />
1453
+            <element signature="method#toString#0;class#Question#0" expanded="false" />
1403 1454
           </folding>
1404 1455
         </state>
1405 1456
       </provider>
1406 1457
     </entry>
1458
+    <entry file="file://$PROJECT_DIR$/src/GestionErreurs/BDDException.java">
1459
+      <provider selected="true" editor-type-id="text-editor">
1460
+        <state vertical-scroll-proportion="0.15858209">
1461
+          <caret line="8" column="1" selection-start-line="8" selection-start-column="1" selection-end-line="8" selection-end-column="1" />
1462
+          <folding />
1463
+        </state>
1464
+      </provider>
1465
+    </entry>
1407 1466
     <entry file="file://$PROJECT_DIR$/src/GestionBddDAO/ConnexionBDD.java">
1408 1467
       <provider selected="true" editor-type-id="text-editor">
1409
-        <state vertical-scroll-proportion="0.0">
1468
+        <state vertical-scroll-proportion="0.5391791">
1410 1469
           <caret line="41" column="0" selection-start-line="41" selection-start-column="0" selection-end-line="41" selection-end-column="0" />
1411 1470
           <folding />
1412 1471
         </state>
1413 1472
       </provider>
1414 1473
     </entry>
1474
+    <entry file="file://$PROJECT_DIR$/src/MainAdminBddBurgerQuizz.java">
1475
+      <provider selected="true" editor-type-id="text-editor">
1476
+        <state vertical-scroll-proportion="0.65745854">
1477
+          <caret line="16" column="52" selection-start-line="9" selection-start-column="8" selection-end-line="16" selection-end-column="52" />
1478
+          <folding />
1479
+        </state>
1480
+      </provider>
1481
+    </entry>
1415 1482
     <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/InterfacePrincipale.java">
1416 1483
       <provider selected="true" editor-type-id="text-editor">
1417
-        <state vertical-scroll-proportion="-4.9117646">
1418
-          <caret line="479" column="24" selection-start-line="479" selection-start-column="20" selection-end-line="479" selection-end-column="24" />
1484
+        <state vertical-scroll-proportion="-4.5882354">
1485
+          <caret line="81" column="8" selection-start-line="81" selection-start-column="8" selection-end-line="81" selection-end-column="8" />
1419 1486
           <folding>
1420
-            <element signature="method#InterfacePrincipale#0;class#InterfacePrincipale#0" expanded="false" />
1421 1487
             <element signature="method#loadImgBouton#0;class#InterfacePrincipale#0" expanded="false" />
1488
+            <element signature="method#createStatusBar#0;class#InterfacePrincipale#0" expanded="false" />
1422 1489
             <element signature="method#createPanelCategories#0;class#InterfacePrincipale#0" expanded="false" />
1423 1490
             <element signature="method#createPanelReponses#0;class#InterfacePrincipale#0" expanded="false" />
1424 1491
             <element signature="method#createPanelQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1425
-            <element signature="method#modem56k#0;class#InterfacePrincipale#0" expanded="false" />
1426 1492
             <element signature="method#nyan#0;class#InterfacePrincipale#0" expanded="false" />
1427 1493
             <element signature="method#configureBDD#0;class#InterfacePrincipale#0" expanded="false" />
1428 1494
             <element signature="method#tryToConnect#0;class#InterfacePrincipale#0" expanded="false" />
1429 1495
             <element signature="method#setStatusText#0;class#InterfacePrincipale#0" expanded="false" />
1430 1496
             <element signature="method#setStatusText#1;class#InterfacePrincipale#0" expanded="false" />
1497
+            <element signature="method#setReponsesPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1498
+            <element signature="method#setQuestionsPanelEnabled#0;class#InterfacePrincipale#0" expanded="false" />
1499
+            <element signature="method#reSelectCategorie#0;class#InterfacePrincipale#0" expanded="false" />
1500
+            <element signature="method#reSelectReponses#0;class#InterfacePrincipale#0" expanded="false" />
1501
+            <element signature="method#reSelectQuestion#0;class#InterfacePrincipale#0" expanded="false" />
1431 1502
             <element signature="method#getCategorieList#0;class#InterfacePrincipale#0" expanded="false" />
1503
+            <element signature="class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1504
+            <element signature="method#actionPerformed#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1505
+            <element signature="method#valueChanged#0;class#PanCategoriesListener#0;class#InterfacePrincipale#0" expanded="false" />
1506
+            <element signature="class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1507
+            <element signature="method#actionPerformed#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1508
+            <element signature="method#valueChanged#0;class#PanReponsesListener#0;class#InterfacePrincipale#0" expanded="false" />
1509
+            <element signature="class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1510
+            <element signature="method#actionPerformed#0;class#PanQuestionsListener#0;class#InterfacePrincipale#0" expanded="false" />
1432 1511
           </folding>
1433 1512
         </state>
1434 1513
       </provider>
1435 1514
     </entry>
1436
-    <entry file="file://$PROJECT_DIR$/src/Modele/Reponses.java">
1437
-      <provider selected="true" editor-type-id="text-editor">
1438
-        <state vertical-scroll-proportion="0.0">
1439
-          <caret line="2" column="13" selection-start-line="2" selection-start-column="13" selection-end-line="2" selection-end-column="13" />
1440
-          <folding />
1441
-        </state>
1442
-      </provider>
1443
-    </entry>
1444
-    <entry file="file://$PROJECT_DIR$/src/Modele/Question.java">
1515
+    <entry file="file://$PROJECT_DIR$/src/InterfaceGraphique/SplashScreen.java">
1445 1516
       <provider selected="true" editor-type-id="text-editor">
1446
-        <state vertical-scroll-proportion="0.6243094">
1447
-          <caret line="63" column="30" selection-start-line="63" selection-start-column="30" selection-end-line="63" selection-end-column="30" />
1448
-          <folding />
1517
+        <state vertical-scroll-proportion="0.08563536">
1518
+          <caret line="32" column="67" selection-start-line="32" selection-start-column="67" selection-end-line="32" selection-end-column="67" />
1519
+          <folding>
1520
+            <element signature="imports" expanded="true" />
1521
+          </folding>
1449 1522
         </state>
1450 1523
       </provider>
1451 1524
     </entry>

+ 13
- 3
java/src/InterfaceGraphique/InterfacePrincipale.java Bestand weergeven

@@ -20,7 +20,6 @@ import java.awt.event.ActionListener;
20 20
 import java.util.Arrays;
21 21
 import java.util.Vector;
22 22
 
23
-import static java.lang.Thread.sleep;
24 23
 import static javax.swing.BoxLayout.*;
25 24
 
26 25
 public class InterfacePrincipale extends JFrame
@@ -68,23 +67,33 @@ public class InterfacePrincipale extends JFrame
68 67
 
69 68
 	public InterfacePrincipale()
70 69
 	{
70
+		SplashScreen splashScreen = new SplashScreen(this);
71
+
72
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_BDD_CONF);
71 73
 		configBDD = new ConfigBDD();
72 74
 		configBDD.loadConf();
73 75
 		bdd = new ConnexionBDD();
74 76
 
77
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_BDD_CONNECT);
75 78
 		tryToConnect();
76 79
 
77 80
 		setTitle("Administration base de données de l'aplication BurgerQuizz");
78 81
 		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
82
+		setIconImage(new ImageIcon("rsc/icon.png").getImage());
79 83
 		setLayout(new BorderLayout());
80 84
 
85
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_RSC);
81 86
 		loadImgBouton();
87
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_CREATE_STATUS_BAR);
82 88
 		createStatusBar();
89
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_CREATE_PANEL_CATEGORIES);
83 90
 		createPanelCategories();
91
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_CREATE_PANEL_REPONSES);
84 92
 		createPanelReponses();
93
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_CREATE_PANEL_QUESTIONS);
85 94
 		createPanelQuestion();
86 95
 
87
-
96
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_SETUP_UI);
88 97
 		JSplitPane sp2 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true,panReponses,panQuestions);
89 98
 		JSplitPane sp1 = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT,true,panCategories,sp2);
90 99
 		sp1.setBorder(BorderFactory.createLineBorder(new Color(238,238,238),5));
@@ -112,6 +121,7 @@ public class InterfacePrincipale extends JFrame
112 121
 		sp2.setDividerLocation(0.50);
113 122
 
114 123
 		setLocationRelativeTo(null);
124
+		splashScreen.setLoadingProgress(SplashScreen.LOADING_READY);
115 125
 		setVisible(true);
116 126
 	}
117 127
 
@@ -313,7 +323,7 @@ public class InterfacePrincipale extends JFrame
313 323
 			this.setSize(1000, i);
314 324
 			try
315 325
 			{
316
-				sleep(100);
326
+				Thread.sleep(100);
317 327
 			}
318 328
 			catch(InterruptedException e)
319 329
 			{}

+ 87
- 0
java/src/InterfaceGraphique/SplashScreen.java Bestand weergeven

@@ -0,0 +1,87 @@
1
+package InterfaceGraphique;
2
+
3
+import javax.swing.*;
4
+import java.awt.*;
5
+
6
+public class SplashScreen extends JWindow
7
+{
8
+	private JProgressBar progressBar;
9
+
10
+	public static final int LOADING_BDD_CONF = 0;
11
+	public static final int LOADING_BDD_CONNECT = 1;
12
+	public static final int LOADING_RSC = 2;
13
+	public static final int LOADING_CREATE_STATUS_BAR = 3;
14
+	public static final int LOADING_CREATE_PANEL_CATEGORIES = 4;
15
+	public static final int LOADING_CREATE_PANEL_REPONSES = 5;
16
+	public static final int LOADING_CREATE_PANEL_QUESTIONS = 6;
17
+	public static final int LOADING_SETUP_UI = 7;
18
+	public static final int LOADING_READY = 8;
19
+
20
+	public SplashScreen(JFrame owner) {
21
+		super(owner);
22
+
23
+		JLabel img = new JLabel(new ImageIcon("rsc/splashscreen.png"));
24
+		img.setBorder(BorderFactory.createMatteBorder(10,10,5,10,new Color(248,179,52)));
25
+		progressBar = new JProgressBar(0,9);
26
+		progressBar.setValue(0);
27
+		progressBar.setStringPainted(true);
28
+		progressBar.setString("");
29
+		progressBar.setBorder(BorderFactory.createMatteBorder(5,10,10,10,new Color(248,179,52)));
30
+
31
+		this.getContentPane().setLayout(new BorderLayout());
32
+		this.getContentPane().add(img, BorderLayout.CENTER);
33
+		this.getContentPane().add(progressBar, BorderLayout.SOUTH);
34
+
35
+		this.pack();
36
+		setLocationRelativeTo(null);
37
+
38
+		this.setVisible(true);
39
+	}
40
+
41
+	public void setLoadingProgress(int status)
42
+	{
43
+		switch (status)
44
+		{
45
+			case LOADING_BDD_CONF:
46
+				progressBar.setString("Chargement de la configuration à la base de données...");
47
+				break;
48
+			case LOADING_BDD_CONNECT:
49
+				progressBar.setString("Connexion à la base de données...");
50
+				break;
51
+			case LOADING_RSC:
52
+				progressBar.setString("Chargement des ressources graphiques...");
53
+				break;
54
+			case LOADING_CREATE_STATUS_BAR:
55
+				progressBar.setString("Initialisation de la barre de statut...");
56
+				break;
57
+			case LOADING_CREATE_PANEL_CATEGORIES:
58
+				progressBar.setString("Initialisation du panel des catégories...");
59
+				break;
60
+			case LOADING_CREATE_PANEL_REPONSES:
61
+				progressBar.setString("Initialisation du panel des réponses...");
62
+				break;
63
+			case LOADING_CREATE_PANEL_QUESTIONS:
64
+				progressBar.setString("Initialisation du panel des questions...");
65
+				break;
66
+			case LOADING_SETUP_UI:
67
+				progressBar.setString("Initialisation de l'IHM...");
68
+				break;
69
+			case LOADING_READY:
70
+				progressBar.setString("Chargement terminé. Démarrage Application...");
71
+				break;
72
+		}
73
+
74
+		progressBar.setValue(status+1);
75
+		try
76
+		{
77
+			Thread.sleep(1000);
78
+		}
79
+		catch (InterruptedException e)
80
+		{}
81
+
82
+		if(status == LOADING_READY)
83
+		{
84
+			setVisible(false);
85
+		}
86
+	}
87
+}