From 4c2b64e49cf684a43868b5aa0599cc66f6a6da49 Mon Sep 17 00:00:00 2001 From: Amir Daouadi Date: Thu, 20 Apr 2023 12:14:47 +0200 Subject: [PATCH] =?UTF-8?q?Modification=20des=20param=C3=A8tre=20d'afficha?= =?UTF-8?q?ge=20de=20la=20grille?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Accueil.class | Bin 1941 -> 0 bytes src/Boutons.class | Bin 4232 -> 0 bytes src/Boutons.java | 21 ++++++++++++--------- src/Fenetre.class | Bin 650 -> 0 bytes src/GridPanel$1.class | Bin 1208 -> 0 bytes src/GridPanel$2.class | Bin 1011 -> 0 bytes src/GridPanel$3.class | Bin 1006 -> 0 bytes src/GridPanel$4.class | Bin 1004 -> 0 bytes src/GridPanel$5.class | Bin 534 -> 0 bytes src/GridPanel$6.class | Bin 534 -> 0 bytes src/GridPanel.class | Bin 4088 -> 0 bytes src/GridPanel.java | 9 +++++---- 12 files changed, 17 insertions(+), 13 deletions(-) delete mode 100644 src/Accueil.class delete mode 100644 src/Boutons.class delete mode 100644 src/Fenetre.class delete mode 100644 src/GridPanel$1.class delete mode 100644 src/GridPanel$2.class delete mode 100644 src/GridPanel$3.class delete mode 100644 src/GridPanel$4.class delete mode 100644 src/GridPanel$5.class delete mode 100644 src/GridPanel$6.class delete mode 100644 src/GridPanel.class diff --git a/src/Accueil.class b/src/Accueil.class deleted file mode 100644 index 5e222683d61845ec0ff4d0ab72f58438686ba63b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1941 zcmZuyTUQ%Z6#j->CX54wP(Z*Uplt&If@r-!tp#e@P;N>EL#;YV4q<3ALnjj`)vERO z2YmF=Cm&tQmAH({Cm*!G$7h${nMp$IarKrnE_l?@m2)aR4i$TU|GeA1|8Ss#(SeyO zd#c*DU2$?EWlBGK!@#Wcq9chp9hWhuKu!4$_^ScYA+WC?CXo-4MFp-pjT{la@Dx0?jUz_8Y*$?Rlf3&n9PpQm^3!o|8J3K@uVpAzv`^NI zQz}c%ijHHP=y-rr1^q41vhC!B(}X=lg~4suj?2i8@d>-T!qN-I^C?bsyo%Qv%FS}6 zOGZJYb2dBMoi%dz3XWZ|^0S9W1?lvWj?eJ9jxX?7$Cr4l;wv3r;~Rp@f~}=#%awsE z7;I~<6tMTg@w(e=d;7qo<-~;IY442E)|Mmoh2x0)w)yZWYpsrW)|!6)W6d+8(v07p zSX(TT<0*#e&BJwhI7j%Yvf^!MuX*i$nsr)DIYvo%l4yacAJ}HubZ$6iQO@jOe9{~3 z7J9kjvgL~kdI?VR1vqR%6Ft)A(C^&3VX+NuX3sl(|SUSz87y!&zPKbX0&-^ z+^;Z{V0=&3R&E=ykner+6peWMe7@6-_mEB!;}-7^dy_v zvT%-N-S#lfl{U=13)VACbV%n8t6I!5?hMUtZ<7fg06bX8mMkC#DiLTw-kTOl-1-sVWkI0O>UUXOt>t ZchBPLW*6kAH^e@SbDJr6o%asB@h|?~%iaJ0 diff --git a/src/Boutons.class b/src/Boutons.class deleted file mode 100644 index df7dc600a42edd1f3c3765bc119e6fbf8acee296..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4232 zcmbtXi+3DV9sVZSWG355ve`b9(|jk7yMHU#R#%MNxeG2Y8UTz)_{2jkS2mBTm2p&+Xw7sXuc)8NTIFPm}M9MW)D!x0rnqiDiAqUgXo zW%I5mZoRx# zTMlu4OKZ8BDUc0ZoVWm|o;EWhDYMxYhnm+ZSQM|aY*9J^0GcS$I< zgPxf@IACUd1az!|u#UAPU&TEnR6%sm$-7Ch&5}s<9w$$(a%&`kIuf{7!R(8WNt(7# zPS}$Zu5gXKEsQardMRbPM^(L3Y&&!%6K$VLcRnH8J)CcXy!QMstnbxtaRvZ(-t}& z$G3HS2jA84Jxr?jzK$Q@yn;>r!pOQJBjF`Y*Gzho_Y+piu{>k)0f{hg8$>@k%17e2 zoy>?U)-aU&Tvy~>9Y4g6R6L>MN&HyFQ#zi;Pl`A?(k3%!&|_YV_2jK|N|LjrU*wEb z$(ejCv&+!&Q~XReKUbg}*6|BGqvDr3euew!AK%>}tqSJt6`5?>at$**IbnK^MOzrZ z^v`b7^*EkdH62;TxFvJzk|2$8ITD<7GIG5^F<(s?#|r}Gxtuvx?f@OX#GOrDFp59mk5PW>{=~Y>43Rk{+)I&-2qmuv=N+oUtLxla;nEx8FIm zD=X|^w4BUdhaUi&f!5WUAaH&Wg1RJ9L79#fzaAZy(;-I)uU_g)*x7t>8wCR)aMKDy z0kCW20Bc=WXe3DZu0)ZIu=f~SR<19T^^W)fvyTy(+;6(w%-2XuqP3U&PseaCXUMiJ z8kE{`>HHwcl?MZltOzqhj;qZq9mc>}UBnwEXeMXH!b!o!WM~G>)6<&g1kCfZTJmgI zb&1<@K;$+n;iXxNVnH;?_%3nk{qLM6e5|G7kx26J6fPVyDZsF6s*o8CRQj zDlKx&f#5|FDdh7q!J#8r5nlfKCxb0tTQ*EqQFE`EP7hk1=u+`d1uJLpb1{4P!GG;_ zSjNKI%R59RuMj-*@u>nllKDMPW$deXuSj4A+c)v;MP5)U*x%W98cN$aR1C)}Pa|>) zRc();>Kv+v8}RSg`qNMg(1M|w;dnF>n{yho3ee@yNz@il7YNt;!Z8lVW(srYLg83Z z_|j8okh)pdW=joxnd85lAVLNGY&W5n?JPvtH=qv9sK;f9p_^hmF&ic&Jl>CP z!hBwQ7UCA#dKquwfS`nSKtXsJWVE^!Dc**E!=A> zce@IIMYpny`6u1kjOfc~Q}O0kaHFE)8f9_COQ@-M8MPdH30jYeYp-P9UdOc+7{=e& bN6F?3_&fD95(_YoGa0V2;qV_kxv>8WpT?C@ diff --git a/src/Boutons.java b/src/Boutons.java index e45f548..f6d02c5 100644 --- a/src/Boutons.java +++ b/src/Boutons.java @@ -7,7 +7,8 @@ public class Boutons extends JPanel { private JButton choisirGrille; private JButton importerGrille; private JFrame fenetrePrincipale; - + /*private int tailleGrille; // variable pour stocker la taille de la grille choisie par l'utilisateur */ + public Boutons(JFrame fenetrePrincipale) { // Création des boutons choisirGrille = new JButton("Générer une grille"); @@ -32,16 +33,18 @@ public class Boutons extends JPanel { } try { int taille = Integer.parseInt(strTaille); - if (taille > 3 && taille < 21) { - // afficher la taille choisir dans la console - System.out.println("Les dimensions de la grille : " + taille + "x" + taille); - // Afficher la boîte de dialogue pour le choix du remplissage de la grille - String[] options = {"Remplir aléatoirement", "Partir d'une grille vide"}; - int choix = JOptionPane.showOptionDialog(this, "Choisissez comment remplir la grille :", "Remplissage de la grille", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[0]); - switch (choix) { + if (taille > 3 && taille < 21) { + // stocker la taille de la grille choisie + /*this.tailleGrille = taille;*/ + // afficher la taille choisir dans la console + System.out.println("Les dimensions de la grille : " + taille + "x" + taille); + // Afficher la boîte de dialogue pour le choix du remplissage de la grille + String[] options = {"Remplir aléatoirement", "Partir d'une grille vide"}; + int choix = JOptionPane.showOptionDialog(this, "Choisissez comment remplir la grille :", "Remplissage de la grille", JOptionPane.DEFAULT_OPTION, JOptionPane.PLAIN_MESSAGE, null, options, options[0]); + switch (choix) { case 0: // afficher la grille aléatoirement - GridPanel grille = new GridPanel(); + GridPanel grille = new GridPanel(taille); this.fenetrePrincipale.add(grille); this.fenetrePrincipale.validate(); break; diff --git a/src/Fenetre.class b/src/Fenetre.class deleted file mode 100644 index a2c928b5af08a89c6a7d05fa35bfc8a51a8a604f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 650 zcmY*X+iuf95Ix&moVc4_LerK@3oVyA?!|z3D?&o4A_WDINQA@#53V~T3y!yPHVxvh zkWh+1;sf|7#H_KR^5C=D*)wy_%=q`8AHM)R!Q%?nTr8sDVjUY6HXU5AqJ$e3Zn_M& zT-2~-VcWrNd){%dBT#;-5@ntV6ujnJfnrOak-&0SCG=`CI;FH9p2i$;dwP;a)K>N) z+mw(=>F8s45ehiZqi8}ZmRQ2BgS!&l+ z4sa-Ogdk^s4#rcJ41yQ!G#rt{Lp)-QTvDLnb+ejr$ef-@nR;xkugsPDTF0N15m+6N zIiU~XBsTNdn%Df7Z$0JFV}Tk|dr?Z1^wbw_as4W7Zk>sxsX8-50ny>%4M`1#EL8G3 z9qYjvbCoQABX{{<=b6t2bGkYT4Uggt#e7~+UkhB#Xz9_pPAD;1#wKUvZM0%Nrq}0` zX6d{yk9D!b>s;ht0bpM|(`CjLzP(2g1wIe`y12x`cNAtQc7LMuZvPv~{5hAXyz~!d qsQO|C*Duc?zh-4t8MomuIw+&U0#$6m#V!l&!S1ZaB6WUWz_q_Uj*<-k diff --git a/src/GridPanel$1.class b/src/GridPanel$1.class deleted file mode 100644 index 9aedacd26d24bb734ca133fda92e35e2d174600f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1208 zcmZuxSyR(c6#j0v*btzAxUh;8=pt=XUpy1f4}|!7{Nx?$ULbVx;4$v z5V~Lwzhdwt%>rj=%;*MRIoR9cr8RAK#QqY3i62=uw$PqNi|2zJvXQr#MB5x2jB6fbR%u1xX!hr-RfJ-1-Xt3H-xy}XQ=;)hV@!dUnQvV2<=yb0@WbVfXi+`rHd|Ftfw2^ zh9G_W=uPiO4g+|L5DbLz0TFye6rbpC;xl4srxP)F&*^@6By>pVWDG6|UF@7#9g|y_ eBy`Kc9=K^pB4-cf0*$AaGCd|F)6kmeNuU2)IR700 diff --git a/src/GridPanel$2.class b/src/GridPanel$2.class deleted file mode 100644 index c782be4352e6fc933b1ed880677c0556766e8646..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1011 zcmZuwT~pIQ6g^8LX+wYlDj$jzEZ7zy1;O$q3^K*hX_Wy+XPEIJq$^D=8zX_0o&Co8ZZjjD1bd;X?Ze`0ByuM846<4@&m7y!sV$Z&2&^EjZ zXXq}ug1-z8_qo4o@7I;ZcBJcxE$+Yb{6k)07|E1s_K|Jb$I{|QTu5s@q7)TgR?a$i zr0u*f+aDqyI;=<;sWEoE(0BNzt2}o#l}#&ubX8F}buVzmL7B^{SD}L@dN5<68%Yzh zcw|y$=1n|Cfi5YN;?#OraU~CZ9SbHFv1DQy1rsZHVq#U%ZWcwIRQlF>%?l;>Q{~VP zC@;;+)3Xfbb0N6DQMZGD(`GV?uWpM2>(zdZJCb4e+K@|bAUU06NHqO13|-5O(!&tT zs0xNu!W=q)(@#LSD*TP&XMwFACKa)C5{)uQiUvd>$$4*iKM5V9BH^ z88vbneLd(UYagL8S}Ti@oBRrv`-Zm9w4xf(*iJL3#v}%}8~mRQzMK0(bo$N_`vhG( zg%&%9_NHO_h|C4L(c69o{Q}2hXGmN?L%~ywUy?emNZJ)iK_#axk~4t>;W_kU9;4K7 zQz&48-c2lFn|kamwOExpte;qe(6)69{85K>4C)wC^8lM2MGSW$mv=EtvqnGa2p$qL KC_G1k2ndfZB7V`|9nHGEYHG{I` zRyjkgXgmB>W4FS+O|w#$7Sj^8>y)|o&h>VAl_8NS?wEU~VeSiq?{P;Mivgt|@vIEi zu^~+BeaZX~#86=b%1Dj2;Wj*rFWWM5=Y_Iy8IMvG9INj7wzFO0qUKh~QAZaZ=!hY% zV*-;pb>@+d$C#odB~qMRY*cN*8=i`39W!{MV-{07=I~UNwn6s++#geTH~YTHSQEjkU@Sw*D7`T!fbcP|6 zk+J+-Z=KRsw&i+SI;UE%v%ydf41b^cXS{gU5W;n642#>sj8J^3Wl9@E37aaK@X#PrOtF?}qd>%=9tR0|oz~XT^ zEqcRk^mU<|tUZKMbe0w^H~JMU_YG~I>BMlI)-dhB60NweIjS)HB>3I!5FSY7!n|_?#5IBq^6938kF2K+XsvgbTQdWei~j zV|b2ftkUTv)=|V;lu*MO-2?ql)>ZWVkq5o(C_X%lK Jp-wyf{sK3N+;ji{ diff --git a/src/GridPanel$4.class b/src/GridPanel$4.class deleted file mode 100644 index d7d91682159254c344e577871e29e7753a01d6d2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1004 zcmZuwZBNr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