From 5ad331149bb838c79adfac0e9d9c5197d6a1b257 Mon Sep 17 00:00:00 2001 From: raban Date: Thu, 2 May 2024 17:36:25 +0200 Subject: [PATCH] Presque Fini --- AutomatiqueActionListener.class | Bin 1657 -> 1657 bytes CaseMouseListener.class | Bin 3438 -> 3438 bytes FenetreChoix.class | Bin 1359 -> 1359 bytes FenetreModif$1.class | Bin 0 -> 1376 bytes FenetreModif.class | Bin 0 -> 1103 bytes FenetreModif.java | 46 ++++++++++++++++++++++++++ FenetrePrincipale.class | Bin 1143 -> 1143 bytes GenerateurSudoku.class | Bin 720 -> 720 bytes GrilleExisteActionListener.class | Bin 0 -> 1443 bytes GrilleExisteActionListener.java | 38 ++++++++++++++++++++++ GrillePainter.class | Bin 1296 -> 1296 bytes GrilleSudokuDessin.class | Bin 1304 -> 1304 bytes GrilleVideActionListener.class | Bin 0 -> 631 bytes GrilleVideActionListener.java | 28 ++++++++++++++++ Grilles.class | Bin 1236 -> 1236 bytes Grilles/GrillesTest.gri | Bin 36 -> 36 bytes Lecteur.class | Bin 1179 -> 1132 bytes Lecteur.java | 1 - Main.class | Bin 496 -> 496 bytes MainCreation$1.class | Bin 743 -> 781 bytes MainCreation$2.class | Bin 1546 -> 1584 bytes MainCreation$3.class | Bin 1356 -> 0 bytes MainCreation.class | Bin 1926 -> 1381 bytes MainCreation.java | 52 ++++++------------------------ ManuelActionListener.class | Bin 822 -> 822 bytes OuvertureFichier.class | Bin 1181 -> 1181 bytes Register.class | Bin 1071 -> 1071 bytes Reinitialiser.class | Bin 720 -> 720 bytes ReinitialiserActionListener.class | Bin 552 -> 552 bytes Resolveur.class | Bin 855 -> 855 bytes SaisieGrille.class | Bin 2084 -> 2084 bytes SudokuGenerator.class | Bin 2861 -> 2861 bytes 32 files changed, 121 insertions(+), 44 deletions(-) create mode 100644 FenetreModif$1.class create mode 100644 FenetreModif.class create mode 100644 FenetreModif.java create mode 100644 GrilleExisteActionListener.class create mode 100644 GrilleExisteActionListener.java create mode 100644 GrilleVideActionListener.class create mode 100644 GrilleVideActionListener.java delete mode 100644 MainCreation$3.class diff --git a/AutomatiqueActionListener.class b/AutomatiqueActionListener.class index c66d6db6b425e357e7729b4e2c6e1ea9bca79ddd..71d5119b729bcc506c9fc5acfd87870f3d61cd46 100644 GIT binary patch delta 685 zcmXX^O;Zy=5Ph>BncZa|5Fr98NaQ0~0zpKBfPg`x0V0TqkodL6Ee*nkN`fBo7g$nr z(VL#E@}{Mb!Ya$NH!uDd%F?nEJ@lLIp6=?`Z{|=Oisbh{2VVgsaNmLgl|vKI;bUlA zcb+=24aa*FTX?YU=E@AdiM*FDPco?C$chOACWj?Z2O)p4j@?|S-a-TX9E}1^@W~aW zlQKup%+Vqc#8J7e^w*ncLp#SYf#WzK-zcY51D$e}MX0t5A&yf5-RO}&l+mz7wS59% zL>LUu@e0fNO}93G)T4bfIl(KafYEO>3VLt=q?uXUM|1oY`7MN zp;qCXKpdlTT5Yic)G;P7jtTif9VP~onBtfgxQK-Ore=uSCHa%}kT6MUE1}(&&-gVW zkjjY{q{;8YO$#fy#j#qQuqH!VpT_ViEZ=Ia z^0~It!XQ$f=N4x+oKndxaolFK_<-JFb?n+zl+9B=#B}gHI-ihHdnNpRW z7O2KLt`J_O$fj7K)3W!$?EcT-A1Go-5jH?2G@-#FtfTBK=KlA+uVsNH`xE#c>MIDO zKcY3zv4`Zz3VIXK3hdVyA~&uF^)9y=Lz{8_1;cCm7#TC$Of9;Hvnr@@)Cna!&?Lt@HK`(24NNEjqK3|vB|k2-+r^e9KtfIzqcT_MW#8tB8708$+N99KC87>wMy zYj0-?=9a}!H@RWHG`Ex9E8BUN9521`>kR%O+p&uyvQd4_2Ia2W84+l}kiaR_a|{cN zV2I6Ma99uN7h3NnXv)Wrf$76=5oYtZ;>t(`)ttdnk}5O2U~!bVbY(h9vsd><^H_zdL( zDTXG(DyW1yG#G>@DBFxP$9?aQvcO#Y6O=uuWoT0$;S2fqz{?1vJIc_9chN;W<*WCF ztvVQ6DgFgwX&)yC^hRCl*h3Yo=Le_;%BXn diff --git a/CaseMouseListener.class b/CaseMouseListener.class index fd52052e9d8a0cfeeb46c7ea4ea26896210e99b1..cfb871672e4dec42c595f96e59fc28070da080c2 100644 GIT binary patch delta 1841 zcmZ`&-E$LF6#w01ckgbxr6mx`*0!Wop&!`Nf&~KwY%MfcED%IOQB3KQE`&`<(ozr& zYW)KI!0Q(+AmRs)4t@j%2OXcBafTTl{1@cKkq3QYI%+*PY3X3chuwRA_jk^@zjN-n zx65yrm;LrsQ98i%bOX<+j;zC+SMA#>D-2KzylI z`6OIyVhO<;s#R>D4)q)jCYItMaZ7D(kPb~ImdRZ6>6~sS?%EMMVeidQHrLJ{)?#8g z32oFYpP!obu!&Zz6bH2B#XdZO5XWj0YtSanYpb#{;W`uR@hCNk5*8$fsgX`BVKb<; zb-le|jt+*>{juR#QzGWZnsW>l&75fv=!S;Jc%9R5A6iOF6=ZB#V&D-S5uX{@ifOXCidW2agMLtDy!@>u^0Ue zbA}5FI|iJ6`%+Y*RvQk7>vl<>eJ0|v6UN<6$X&<8erQx%${wUTNn=9%n2(mE^-d)wP|j4+f@U+ke&usK+p>`OTDSSIPD?7EPSqcdd7 zEb^H6-CG{i@xqML3UV4O+%^rD%y3*(E7g@gdKE93cp0Ol)Jb<99LyZa&+jfBuZoRI z8wq+{j4G>6-%9kn!!WP6d#3q?3ti3e?th5Ftq}1Zy^lh~>yqw05#cq9xIIoY>7@J|5+f+v)mQLGgj*DWA zQLAx$#!w~J8C5iRT6Z#eU}zB4^rk&D(2V}{s>$+@t>O*(pCD9ESn|I5D`52v--2Jx zd!H0P7=i35yjk$`#$nL=g{Pq*hvNEgz;l?FXd|$28mz4t_mor=(0zraYTzRKt8$#( zshqX_tK6x~p<1pLIXw6kY70({g{Ao#R%C%3Ru%BtDYj*bZX9E0)$3@Fdi{?@qKbb* zB&2+YuILqP3aLaqPQ+#+EHx6+n5Fr9R1dQhOYyc`MWmGnxN-q~mYTy;A>GoiqPNwM zsi%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2ZWMe2NqY z@EUIvBsHwyZO^0>E~!6NB0|gvwOg}cCq9zg9*Hh^H5tG=hG>?DD#B`irL|C5gi21k z(Wx%PL+yswZiINHVw6tW4G~wdj+BD5h7CDL9dQ%ANg0%ygfJ}y85)wCf>P0GyG*qY zXAMi_>(wLS?DGzrQ7Yk|@J6>iM3{7ON+M%O!oi!V;!;eSqP%duoREoJ0^7D|BGM*z zUE$KeY|=fF&n=L|@Y8pT{-((?vi)~!lBswJ6%g}9+M8_|pY z25WELJbKi_Zk4I>;?1AnAK|3sOguSk>lW8z8BKTK$iS)t2rf4%tF#KPe zV#o7Zj*2mY*oz;Zg(ll-+HK})h(o8C^vh(5cbmXfQ7q~2NpT*=k4&5h2l9K^T_(2r2MRkn_SpBb3Dg!N3qihcKv3pZr2pAx*y31F!`?ICWf!z&^o8i(HlqPzT^O}&h|2|e{3C935w97E z5aR_Up>#1(%O>P7kEsCDW15~5rAu8TGj_&}JAZ(Gg_Vx)u~D-)=iPhHyXW4#Gwn?4{P_L#8-O`%>qy}`#SIOU zIuuMvxJhB@h$BNWt>Kmq4O0{|IufvDaGN5l;f|EfYRE~xE8(7m`@ML8ISmhW%wvHf zPq9c4U*sgCfhpY?m>35;5o-k$Sdvr=22TpmJBRo zg}|sdyv143feS3uf85l;WcQ-QCz$U{%nal?f$x#CJ#Hk+zNhLQ(ptqPW*5P}yyK21<;$vkt_^FI_ zFpkUOh2^J!$UiRdiik!96Tz|R2;{Rk5Rrm-beWWR71snxX@r=_057{xYGzLawQR>j z#JY&rW+Ko9HT?mTU1&A4H-f$pONmmVHj`4L9E=bb>{QIW7$Rw>RI^`l2-7AZ25dFN k;1>*;mqHB7Ary=T6KZ~BOq>%Szpz4~(DQl5&&v~k0D~WmU;qFB diff --git a/GenerateurSudoku.class b/GenerateurSudoku.class index 2340c60c6c3734dc73988e9015c978abca95e5c0..baf4bc24abee16fdb8c3690d5710f16726921c65 100644 GIT binary patch delta 208 zcmWkoI}U9vi^Qil_ z*qPm(nQW<-`uhESyZ}tmvLK*IRBY%l2u|c*eD~zX2Y0cJf?Y~5#$g<$6M{AvdJNc=R&l2x`pAG2%UTcQV(GgS$YO66YTsmn-=`sfbInGkI5>I`UXs-wZ2 erSySRTPhs$37P*2>L{uDl?`-5o6k+=0?r@qkRP`I delta 209 zcmWkmJrBVE6uj4}Y87QO7)(Bvjux?s$sno0R5a3(N}AT{H~1-CXe9gqlfm!7^}XcY zy?1x-t-ZD0>wA9!7@=vRgqn`Jj)o3fP#yf8bu0?%9HdvOrnQ1oqUA{MbwU zG+w0J<38mn^iH00@S>eFUx)rCK^H227NtOnFj42$;S^47c!Ojlf(o&a!HB^&$!V1j ckypuWLw!KWez~*@ugRB8$Q3Q>RdNN^ALKwE)&Kwi diff --git a/GrilleExisteActionListener.class b/GrilleExisteActionListener.class new file mode 100644 index 0000000000000000000000000000000000000000..f9e211433378630ce2ed257c2e6af67d6537720d GIT binary patch literal 1443 zcmZ`(*-{fh6g`~;IvEENBgmo{+%Q4HxPlV*0E&i1qiDpJA?ZMCGLz~|1b@Z9uu6j^ zrEk9Y0e+5pdlIVHtf}eg+jEz5?$W>heER|50bUyjAjlCi(Sc5e*jxL(ZB=Y%&01W2 zD~cXN=Pl_-?+!ySnOcq@j0lHe;s{KJ!G}s#Dq?0+);)2*=t8&FagHc>}<>sui ztAe2?r#)|4^$khBAN!{n1Ko&n#7rF3!Q%&27-R2YK{NA%C(HJ=s7$vp|ldy24! zaf)z|hJii|>$II_NG5%Ht;DtTGAjpS`yjW} zGO1;b3k;@aXGzy*6Gn<5+#qt}B}pl`h%t_|iE&ta8GNAHREg!9@RpQY6UzI*Fmed^ z)IsnDMsQj4y~5CYn2AsBnu+U}U^qtPvJIt#<4sFNjpQl{b+m2Q#_f~2vA^(3wj(MA zCK1%x%9yx?+YH_Hb$4U2CY)($SKKv*zP2xW!?Ut(wdOh$E0dbjMt4oz!+nM*5zPxK zy(daK)s&57o7xTp16fRS%$S(PLu$92R&G%Ha&6X7x_9@XrY6*toWo;|Cnj>3r+Um% z(|bzHyCqpB`sH1sEZTZ9Xq1w^DaRtikY7LzUc4vZ*8b^f)7$BW_Qa%?8A4gNM5v-U z>4=3!bycY6_NwLC_CvQJHz_w3@kdAsKO;CM+xeJC>D zgoZlrHdImfECo#bfBeU_6P%{&A^?U3dIS2(pi4)~9ay6EDM_Ow2k2{zZh?(n`~v=o zB!*|Sb|Xk@6d}YAp(}zRkLPW>-{9mMkfWc$o9K!~Vv(PS2j;iYQ`o}sg>Cc|;sc@Y zI8g}3hw@uUOoh?|p(f63W26vIeg#FmG}VzF=xE~VHYUmH=2T~TptFgo3Es;;BARaE z&e&Hxp!bo674TtApo{j$2|ynK>!)WBV>p2;7^1E_MSYaOB8Ksj=)b`klyDa7IFA=( el>qxoLYTmF&?Lt>ddLsQ2*)HN1%_9Cpu#_atY-uO literal 0 HcmV?d00001 diff --git a/GrilleExisteActionListener.java b/GrilleExisteActionListener.java new file mode 100644 index 0000000..90c7491 --- /dev/null +++ b/GrilleExisteActionListener.java @@ -0,0 +1,38 @@ +import javax.swing.*; +import java.awt.*; +import java.awt.event.*; +import java.io.*; +import java.io.File; +import java.io.PrintWriter; +import java.io.FileWriter; +import java.io.IOException; +import javax.swing.JFileChooser; +import javax.swing.filechooser.FileNameExtensionFilter; + +public class GrilleExisteActionListener implements ActionListener{ + private JFrame choixFrame; + + public GrilleExisteActionListener(JFrame choixFrame) { + this.choixFrame = choixFrame; + } + + @Override + + public void actionPerformed(ActionEvent e) { + choixFrame.dispose(); + int [][] grille = new int [9][9]; + JFileChooser fileChooser = new JFileChooser(); + + FileNameExtensionFilter filter = new FileNameExtensionFilter("File grille","gri"); + fileChooser.setFileFilter(filter); + + File workingDirectory = new File(System.getProperty("user.dir")); + fileChooser.setCurrentDirectory(workingDirectory); + JPanel panneau = new JPanel(); + int valeur_de_retour = fileChooser.showOpenDialog(panneau); + if(valeur_de_retour == JFileChooser.APPROVE_OPTION) { + Lecteur.lecture(fileChooser.getSelectedFile(), grille); + FenetreModif.fenetreModification(grille); + } + } +} \ No newline at end of file diff --git a/GrillePainter.class b/GrillePainter.class index f3893929fe57b3e131714199bdcaf8bf6664c7da..577e5588b16c06696c96be3c606b987139c6f25c 100644 GIT binary patch literal 1296 zcmZux&rcIU6#j&w$3E{$0R#;eD(jSm`Q4`L_ zqk0n#deuWQni%8JgBSl9qXd1kZMP-3X?Nbd_sx6Xd~bHXAAb4*U<5NRRKdX^DUji0 zaIb4yTA!&USNmp`*Y!k}!8u?gjqD(UL-o&dR5N%jkhY!en@DS$Yepgy8g+rgrQie< zhMHA98_%Xw8#-ZCf6Rs#oMDbShDO^vqGgOkAtVhw1ze~_gW%&~kkoPiyvW_Cz=tNv zohj#TRF9<=;FCDT(W2lqS{anMW@HR~B5jx^(WxhDbDFSA9@^SHoJy^_|pV@8sya5YMgf4&AP{2T!V-3T(&*;|gJ z%v72|9*GS{CMj=uA66vnLNEF_E-AQ-5JQ8#up~H@BO!`uycIeW)(aVWaaF-Jo7pTi zQ|#rsf*ZJ5Xi`Z7S@kb2k_urAaNJffh&xA)0yW1-uF}4?G&85qJY?{x(PCe%vr+(9 zw1*WsRuKl5kfXG)xyY~*ECk{hW2i0AxUU(>tWK&(k<^N4mC$lJ_h?y9&uPn|d37s# zCPU72iFa4U#!JeCW0f5b`{$`ZJgX%(rnF5f4@ZoW+lm$r9`TK*a_NLVZiq^rBb0gt z7#$d;Z$&&+pw_`j?{S*7(a30&1N&g_$zYhEw+I6c)Zi|nWD}Gi1yB7x+17wkD!XBXR!e%UA6nRl@i_<)Of^aL!gT}G4?|2(eH(C?E%KDoEw>2tn<8t^$k z;#LtaK(e`1rYvT84DHCo;ibjonUJc=l4=@WvSmwC@kKS0XewO;A-YcDP>`khW4Q4I z9=ssz8#Lk_T?gOLgdc?dNyqvZ`48#FkkE>Il&urhhiKv89Fy!17JfrM0A~kq(`Cj>LEF+4bBB;|+s8$6PRGzCFp(AcBsKgd*8k1ow@hC^V)CwA3p;az>JIlPDnT@!-G>2 zI)&jUfD8erInpJg8)tYp%fmU2X?_F|lF@@O550V&Peugid3ixXRKi6D-;kL#3pW_N zTJS!D5X+?vhK7WhHKx}eE*bWmzGM+npEmM&0__Rgv^dbMC06teJ)&cV!BQD{Nf=MJ4OktWd|D%ba(HUpy+2zR0(u$EPkU_43(r^a<)Zd&PXZtavp(Yb=|&EGc!FF~hRfxxqDQTi@i@ z$slQQdia2PSAHyK(5Oik$wRFpIhL0QBt+&XsnA=?W2-6rZ0JNY{a5(o z0sT^-QanOc2d#`&F|-TzjuM7eiarPQ!jGdkMmbU0GeRX=#n2acrou&dr^BBh%r}d> z@D(9>`vq0#DWZnH{>%>UIhB9y6~@9|CzmtsHYIYV3>HxvE~o$J5n)SUZ~p9rdk@Xo z#-_JlR7JP*HWowgp%hUUa!_{+AIZN()YH-VX?m(W70?*kgkd`=Rr#RJK_ zDxzsiBn>YdB~Q6k9>=O_$5#;|*&~xdtz?=;SroNMLP3G*M`*-jx`F4!eNFDaCI7#Y zso#nHgDn0@_&%DMfOfP|=PuOjqfLTG!g2N+^S>bOL1KGoq$*7nedt!&9T6RW0e>GT AbpQYW diff --git a/GrilleSudokuDessin.class b/GrilleSudokuDessin.class index 2554d2a317ce0c2139033d98bf00114bc7895111..28cb06b7876beab7cfe21709aefa1a615d97c911 100644 GIT binary patch delta 752 zcmZ8dO-~b16g_X|O&=WwD1}=4rL8Em(~;U@iyv4(Dp-}oKth6SZ0IPX*qXM;k_~@= z%m!jij2qSxZH**^7&p4|Cz!bNCm8&=QxaoLUf$eu=G=4cyW8rv>i_)f{Q-dMm{lP` z7T_8bxa_aYzu_9QDpn)UAjcC6ZgjvcplaxZ#^9Z)S*xq&{93vCc&%X8>sE!q^{`D+ z!_rbwpqpfmO3zBE(t0CRu%4Kex>c>H=z_-y>19yj#bRPXCF?#7{qQk(>Sp6^&3s_i zYPLs;s?Jn?4JQ%U`lg2kLJWO>J!fjArz_TSJyQ^f*e{qr$|qj}D#D052{8s9pLPO* z7|?J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java b/GrilleVideActionListener.java new file mode 100644 index 0000000..35aed73 --- /dev/null +++ b/GrilleVideActionListener.java @@ -0,0 +1,28 @@ +import javax.swing.*; +import java.awt.*; +import java.awt.event.*; +import java.io.*; +import java.io.File; +import java.io.PrintWriter; +import java.io.FileWriter; +import java.io.IOException; +import javax.swing.JFileChooser; +import javax.swing.filechooser.FileNameExtensionFilter; + +public class GrilleVideActionListener implements ActionListener{ + private JFrame choixFrame; + + public GrilleVideActionListener(JFrame choixFrame) { + this.choixFrame = choixFrame; + } + + @Override + + public void actionPerformed(ActionEvent e) { + int [][] grille = new int [9][9]; + choixFrame.dispose(); + Grilles.grilleVide(grille); + FenetreModif.fenetreModification(grille); + } + +} \ No newline at end of file diff --git a/Grilles.class b/Grilles.class index 005a27bfa45f803846aa83345b5938378af93da1..18560e43d5af3588aea4ebdaa03b333d458df199 100644 GIT binary patch delta 730 zcmZ8d&rcIk5dPl&dfjDP3s|v*YC(~<{3w))TChYCB~3t#7!#zLtaZiJx^3Ep7`^u9 z!I1qAybzCYfJ72F7%v_Te}#$hY=hQ$gp<2@Z{~Y5-^_e-q#x-$-~N6+05FGH0}^Bo z#e@pYKV*@pHsiRCS74BnsfQc^a#mN19LDCa*q{L&rpOI4M3M_Htqm(vvD~%HvR8N9 zwQ0dPs;eW83mg|sB+&22rHRo1E-}Ow?6S9Bw-e8u@(ahVC!E){YNO#i zt=I+zafM^ZL=r*&u9P6HY5y%t%my$*P41jB+^U=K>ecm)FP{Wu%tQv`G*69G(VR-M zD3oPs_W8O~so0IpQhFq~>{;bki&pJ{MXfllGlc)&2uGelS}ktwWN)D#6SQve$)MuU z=$<4LC(FpH={>M*au{-Si!fl)%C90w{-l2(^^~}@C>O$dSpNzx<&}NtD@5zatNRG8 zMAbcn^O`)xBRs5sMAvYHN3~saFEu&aYX1~|&lZAtzJtE5fn8h{Koww^fIlJU(tYt= zj5f9QR{OhLXsSdz+@`TJSj0WV=zoOANYP8q{~$L?Q#4~9MjKfKIIeNr;NXl7ht3fq z2`xnCIby$|&vB&mV@T{625Vuw1xms+W`sJb^NtpykR3bK=RZ+KSk8a13=N1j-BA9Z ULzF+J(?Vy9mdJ3ELJ|u90KG1Z?EnA( delta 846 zcmZ8gO-~b16g_V~`Z~i@3OE)}wBQGAK?;bd1u-!SX{3P!Q-f5Kp^i8>PMb0i6BlgQ zxo|OwKfn!fWpDwB7+n}QCT=Vf-Z9j)-?_qz`OF5#Mv zCY<7kb9CyE(Zz9Ehl(@8oE7FAN4JIql3}ED^q`mHd>DPgO>^{f3^0U79nbN{8017U zAN*jcUNbSdXsuXj*YXz9Gk(SK7DkeJhRBR>6(8rU@@;G0wK)bkE(Euv!BqpzXd!^P zxhzAhKI@dy!_Yoy7yadm9e?N)gFCD-%rRnM6tUnXi?7o3xKn)O*p;|f^5TA_w7l}^wSlW3 zo_wO>xURj#5dBMYYJQOb|4HpJXOIM|)_qNg*P*5BvT$PeAnVaEDM+nqQE^L4c3`pr zvB&|9Y0`0D3fiG8BG;qty2qd-vdKI;5v4m7j|?VMC3}>j4muf~YHAB?gB%8vY^a_z zpy3!|^yY?57$Q(baD;+jKpslz9h+!e3)R+Z-{i41 zmBv19KtdWhOw(%ZxQly;P{s^i$V-J*S}p^ diff --git a/Grilles/GrillesTest.gri b/Grilles/GrillesTest.gri index 1f76f3ffaeea560ee8b528f6b2a9e775adbbe796..6ebe5a7d92ecde3ab226f51a8375ac8641aa1ba9 100644 GIT binary patch literal 36 OcmZQzKnJA;=pq0MjsT_r literal 36 OcmZQzKnH#b=pq0IzyNOm diff --git a/Lecteur.class b/Lecteur.class index 5bbcc2a146e6ee9d8551b9f121cdb5d3cfd551a4..8e08d2c9d7e4a5e942438a4b516eb6c81fea33d4 100644 GIT binary patch delta 665 zcmXw0O-~b16g_XI(>HIN)+tz_g+f6oE!I~2Kq&|b37APLjWIDHjV85BbZRrBV@uq* zapkTVcW#Uu;u04n5o1h@8~=iF<<>u7L&W=x%;LU#?mOq+bKkrczx4HQe?EKyu!dCw z3RI4W2@O#OtJTc*;Z)rx|$QG`4Mz#!z=#U=%5iw23i{ zhec&RW?%x799a`nm=5nMGbO1$Yhp&a)tYVpslzeLFnm1PuB|_7I*&W9@98LnHp|fb z37j)g#QE^0GELi-!$&Ne(=kuF4Y&Ewb%Lztd)ZFlcXz(LvC_^WsQ=8id+oOcx3PpJ> zqrd{LQchI%3K8f)3!g3V(YR>|OMC@aHr0j50mK$HI8o6K5Z_8^`>-leb%7_jCEjAZ znB=KwAH%ix7@@q>N9F}*yGK7|^~^3}6;3xp`99_(&?LA(AZ)0M(UD|?_~9FMG_yzM zbJ)Z!iV4(l4<)KdzXAQBALdaxql9aO>jL2^$94Ry zfI6653Jhf~bc1j+*igDs7S1EejY1(W(6(Nz71NHF&N*c}?`~H8hknH_Zpfd;c3yPG z3AF!bXF{H|h~uv2U3TNE%J2Ld4f;gCE})gl-j*G_7QHd_ zpoJetehP%VKCZFgjS|~#V-{v5tATcO$POUhA_Sf3_lWVyoR1h0<0}+pK^+SnKwVDl zBb3n&pe=W3`v_;k>KH{SV!T7wP?S2tbru;clKC9(Z+6ZaT)U*r{>q1mDC8|!Pf2>IabCDII`80Dg4=;8_f zXgtpECfQW8CDgA*c~K6p6H+$q7I!tot+BaXJxVg@*`Fh40(RJS#?pyp*N9)xt(7@z Z@5HySv@Z|mY&=^b^r|oE==8tZ{{y(yCGr3O delta 260 zcmW-bO-jR16otQ+w0TMTqBYuR{f|x*2gQj$P&yGhQUnKr!&p+AQX-U4iUao$vI(a; zsG#5i9J!RPKz#8I&gI;X!?|;FZg#$ZKfZud_FWu&hhes?}u?O%e%+<%b5<@QNN$`2Jx5>TR&Bffhb$Fs^VD$ZBO4U?MmXXz+y?X kJJ;UOyYYtMn=>k(RPWxgE{|r&R}BPS@gthD{vTcX11L%<9smFU diff --git a/MainCreation$1.class b/MainCreation$1.class index 85a559721da8569ffa31c12e0a14dccc12bad5a5..47b9e2327b0dbb0aa2902cb8e1f8aab146652bf6 100644 GIT binary patch del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R%nK`Z~H&0|KWw=(zZ{cJIR+fTJMXS?Xy>V%dH$8BGF7@LO(l~+)PIERw{wM}9 zj>DKBw~Q?A;~1XeIIpV{2>BAcgoPg%!yk!w#TVdb6!0sq!r&uyxfdS%ggAeo8b#%O zMx~rrQR(7Ljlun(61n;zU7a22;;iE3XkdOMbB>PW3z0wh4$kLQ#PZ6qKakH9Iv9E5 z#3-LNV3LYUIEd>scZw!WGr13#sfTpp5w77exleG5F3j;cis5r&_TdV~NK;&&r7Oeu Rh^wQ~iW7dPdW1XC_dj=y&s6{b diff --git a/MainCreation.java b/MainCreation.java index c5c51e6..7867bb3 100644 --- a/MainCreation.java +++ b/MainCreation.java @@ -11,7 +11,6 @@ import javax.swing.filechooser.FileNameExtensionFilter; public class MainCreation { public static void main(String[] args) { - int [][] grille = new int [9][9]; //Création de la fenetre de selection + choix du dossier JFrame selF = new JFrame("Choix de résolution du Sudoku"); selF.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); @@ -33,15 +32,16 @@ public class MainCreation { selF.add(boutonsSelect, BorderLayout.CENTER); selF.setVisible(true); //Action des bouton - grilleVide.addActionListener(new ActionListener() { - @Override - public void actionPerformed(ActionEvent e) { + grilleVide.addActionListener(new GrilleVideActionListener(selF)); + grilleExiste.addActionListener(new GrilleExisteActionListener(selF)); + /*grilleVide.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { selF.dispose(); Grilles.grilleVide(grille); - fenetreModification(grille); + FenetreModif.fenetreModification(grille); } - }); - grilleExiste.addActionListener(new ActionListener() { + });*/ + /* grilleExiste.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { selF.dispose(); @@ -56,43 +56,9 @@ public class MainCreation { int valeur_de_retour = fileChooser.showOpenDialog(panneau); if(valeur_de_retour == JFileChooser.APPROVE_OPTION) { Lecteur.lecture(fileChooser.getSelectedFile(), grille); - fenetreModification(grille); + FenetreModif.fenetreModification(grille); } } - }); - } - - private static void fenetreModification(int[][] grille) { - JFrame frame = new JFrame("Sudoku"); - frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - SaisieGrille saisieGrille = new SaisieGrille(grille); // Utilisation de la classe SaisieGrille pour permettre la saisie des valeurs - JButton register = new JButton("Enregistrer"); - register.addActionListener(new ActionListener() { - @Override - public void actionPerformed(ActionEvent e){ - JFileChooser fileChooser = new JFileChooser(); - - FileNameExtensionFilter filter = new FileNameExtensionFilter("File grille","gri"); - fileChooser.setFileFilter(filter); - - File workingDirectory = new File(System.getProperty("user.dir")); - fileChooser.setCurrentDirectory(workingDirectory); - JPanel panneau = new JPanel(); - int valeur_de_retour = fileChooser.showOpenDialog(panneau); - if(valeur_de_retour == JFileChooser.APPROVE_OPTION) { - Register.sauvegarde(fileChooser.getSelectedFile(), grille); - } - } - }); - - frame.add(register, BorderLayout.SOUTH); // Ajouter le bouton "Enregistrer" - - frame.add(saisieGrille, BorderLayout.CENTER); // Ajouter la grille à la fenêtre - - frame.pack(); - frame.setLocationRelativeTo(null); // Centrer la fenêtre sur l'écran - frame.setVisible(true); - - System.out.println("La fenêtre de création a été affichée."); + });*/ } } diff --git a/ManuelActionListener.class b/ManuelActionListener.class index 92d48805676f27dfa009c8deff0082a3719f1337..05ad05324efeda1c6777832624b6556d3afd2f11 100644 GIT binary patch delta 381 zcmXYs%TB^z5QWd*mi}#N5xIzWpd!!$D&AJc1b0RuaYLf42r03NsRnUvd;t^k`yv`G z1`{8^H}GYQL&9Rd$(hNVoC(!X&HVgLz5$%z(0~M)LopG7DxO%nt{(Y;KRjlT%T8N| z2A#t&5rxT+YIcJM@21fk`nSQke?RmBZ!l^UECVsjal}o`lg)%>X_7>WBW+><8S%?1 zmX0MXbF7$H#hOs0x~w59a?FVv$iwE?Fj2rJLsI0Wq&Smo3RV&qELAd4ggk|7qJk=e z*6sKG-nBPi;N`1M=hSI)Y>5|UkM5oy$xfrc7;03~G&(&y)e&qHcSyOUCF+Jd26HPP z;IE_@>ckjiq7DTHF-p^2?9J|4v{PtnyYJv3tWPAGZ&*yMhsb@QcsWM7W!2U$h4&*AS(VM6%h)E_`fhFY)p)Tu1FMJR8q8rRD;#6Z(t;S5{(vv zi4Wk?N8tgCmxRT9Gw0rWCii%L&tLla>wN>*!L|YwF&P0&E11Eof;r5~SU_CDqJji8 zjwJ;WVgn>OmN`-!E1k=v%;4X%Y|Ghq`|L$i5kgu;5Mvw}6*|%!Srs|tIaXB^u;!*% z=7^)HVjUX{;RDk)owj+}w(PofXS7Teo7iHAmJR#CY?bPcb!#76_YTdq8A46t(I~VG z`?_#))impl`^z++n9fu?&+$$#+vykG3%2{jAQ_E@RlgaSc>26nJIqumNq~|vjM5PX zTT*<1-XVmE5mGv7fo?_bg6Y{02(P3V#)(0QL>WFP!~j*Jm>Bvh)bmkS)88R@(8N#p g%5NBn_&xA1NM~KhmAshqpbS5BgJObDl10GOKl6n`c>n+a diff --git a/OuvertureFichier.class b/OuvertureFichier.class index 932c978b4fdfdeb2756c87b9122b023addae69a3..039a049cf7a9ef6538bfb8cf0823d99ec3cc6948 100644 GIT binary patch delta 784 zcmY*XO-~b16g_V`Gmn`LGJu0rK@dS&O08h62&jBZ<)euhl7`hVPGGPWG7bb26E?)e zon+R;gbiDDQ5uQ5(uMvB|9~qK6I@vDlwj~J-hJ=hb5G8>@9iqP%J|nm?>_<DR+WbzTr9B{M*U*701htk;cbII5(M)VK zs6;iy(B;nyZPhBek>I$hA&G1LrqE{uQhGI94`v}*`PHX3#|?kBA~J=W8v1a{FA4D} zjsb@H6JMF^_@-sAdCqDZ{4*g9BbLJ z-JO-Jevd&rAq%Fs^Pyvl{M@D236=no1DW<=x;0Z|6s4{Mu(xzz^pdEQfe<+u#n>^F z<*2QSYOi!fS3ZLa(}z%UhY07WxB3A3OeigO7g3*^{eme&)RjGqh0>BCCANw$ zSVTJUX&+THlpKt|A)ygGfrk{<@eI!?DtLjHG(MqX$Nw3cTpTCua|oBw1c_sUgL8tB r`7-Jt|I2VRGD`ORhI9mpV5u_bQ=h7*z$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%;;o1MyV&w)G;sziXm`s)>0d z7!s$-W^3hD$Lhx^#(rz~yq;_*?jSW9!C#n6V z?+Cl;l2$1+i|Y((r{`_kL6nt)E}MT%g}(2&0@H}mUc)1Sh4u-@h~+3Uit5|}*gho; zNy5lUF#;Vaj8jfhR)^zBvB$^JUhaXV+OSCG{+=IhA|F_Lm?}Fp|d08ju3yuq5XmWki*o;LzWsPTF+osxewJ^>BH<1 z#ZVwjAV3%<)adDmkR8J!mi`RR5gHk6C|gNzkTs zkQFWb0j=D$=&wXncczF7=iGPhyZ7Ap2Ejpa^Y!bc4`2m`hA_rdC`fxSu3-Wh4O!&8 zY*N9Lf@uYLLa5%d9mgWbT5YRynpas`vzvB%!#$+yZ5=}>=+F?+p(CnbMn@5|3g&do zqokvZ0wKC@c`df-*ymP@5O0_lX4Ns9_3G|X!#Zvga_$YK+&$6)vQ$3kbSs^=olAn! zvd&Dq*+!n%41=ITaIhc0LwJ@x6R#2DYMf6?tV`yY@dPp|JqTl=2YJsDA;FkLfHBOd za%kKd;Yt$2e*;bs@&_!h%Jr=A0MWliky$<>kX@9X@=yI|1g`|$eZT)+2zfRF3AZaU T=@HI(-%kko;Ey1r{Nm^jSC~GW diff --git a/ReinitialiserActionListener.class b/ReinitialiserActionListener.class index 8378a286c732eae8d005614fa28f8b1d237310b5..76190d5acee680ca9b47b1b388724f1494050cdc 100644 GIT binary patch delta 365 zcmYL^!Ab&A6o&shPEL+9qoZa`R$40^MHfYz!bO`9il9gcS5pjfWpJU=wq9Xq(JQzO zG@+me2zr9vCHk)fZO-AI^Z(y}?o^-ZozI`Q4*(~qn9z_gpj%i$QXo4B?t@ko4EwE% z+d+6Y5l9}(p`5e@64hEag;k^sm=@Bo1WNID$)lt{l2H^=((84U#IcY;Hf~qi266)S zWvCc3h~zjNnQ&21d20fNDjjE6fgH>5bO|}Cb(LVD`Zt=Cxd4fITFChH-9ERVR!+zmNV4F1uoz-MbBSnw{n;XXd q0S>uQfZ{vc8-GUstOE-CYSl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