From fdd5268077d7ddfd5d8793c01b6d2f70c411a018 Mon Sep 17 00:00:00 2001 From: gallego Date: Mon, 15 Apr 2024 18:46:05 +0200 Subject: [PATCH] debut mise en page grille --- Sudoku/grille.class | Bin 3490 -> 0 bytes Sudoku/grille.java | 19 ++++++++++++++----- Sudoku/main.class | Bin 287 -> 0 bytes Sudoku/menu$1.class | Bin 1926 -> 0 bytes Sudoku/menu$2.class | Bin 909 -> 0 bytes Sudoku/menu$3.class | Bin 1248 -> 0 bytes Sudoku/menu$4.class | Bin 473 -> 0 bytes Sudoku/menu$5.class | Bin 460 -> 0 bytes Sudoku/menu$6.class | Bin 460 -> 0 bytes Sudoku/menu.class | Bin 2504 -> 0 bytes Sudoku/resolveurGrille.class | Bin 1208 -> 0 bytes 11 files changed, 14 insertions(+), 5 deletions(-) delete mode 100644 Sudoku/grille.class delete mode 100644 Sudoku/main.class delete mode 100644 Sudoku/menu$1.class delete mode 100644 Sudoku/menu$2.class delete mode 100644 Sudoku/menu$3.class delete mode 100644 Sudoku/menu$4.class delete mode 100644 Sudoku/menu$5.class delete mode 100644 Sudoku/menu$6.class delete mode 100644 Sudoku/menu.class delete mode 100644 Sudoku/resolveurGrille.class diff --git a/Sudoku/grille.class b/Sudoku/grille.class deleted file mode 100644 index ef9b65a8bf7a3db710c660d406a9321e71f8f3aa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3490 zcmaJ^ZE#dq8GcSSyLWfFkdStP@YPTV1lSOWC1OIc$wDAylTZ?ZAua9A?%CwR&AsvN z-SDBdR->)>Rkg~8-}n(fTS|4)X=a@9hyHLzXX;P?Xn*L8qmKH+8KE8UIrr{{O~N=Z zXU~1#_q^}(ex8%x+0&qY5Dn)jGn62&_6|Od01}^5;x@tmW~PGcoDd()I)* z`%T;Q4hV#rwhw8D3e+tS?RJd`8Ha|DT9)b1v0OmQOK-ruCwLdEV`+K{Qm|ynGMJSC&t-Bt{Ae~~mxdM{yRk>0*7v7EhAvDQRzddX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Yy^416YjlX;^TqQ=%Kw??{)R5`FC4-* ziS_`N-{qqtqQMp#G!1JtY-V-8im_w-Np?J0*s1 z;oCtAh!@yB8g<^7LvENIGoGGe(E5 zRVy|1kvA~~v`1#{{-araTm<_3y8GRHTkM)|i;XJLsxg`q%*RLG!1Mjn)xyuv+y0@q zb{6phg>JNmZ{jm`Uo7I~8R%)XzskM1fe^2!%e+G_5&dO+kH1%N-Tw_Tn`6d+qx3e- zeD*P4{b;~3=IJBO?T*s3zptRbht=8 C-eHme diff --git a/Sudoku/grille.java b/Sudoku/grille.java index 5c71d78..f3617b7 100644 --- a/Sudoku/grille.java +++ b/Sudoku/grille.java @@ -12,13 +12,17 @@ public class grille extends JComponent{ public static void AfficherGrille (int[][] grille, boolean editable) { /*paramètre de base de la fenetre*/ JFrame fenetre = new JFrame(); - fenetre.setSize(900, 900); + fenetre.setSize(900, 1100); fenetre.setResizable(false); fenetre.setLocationRelativeTo(null); fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + /*Panneau pour la grille */ + JPanel place_grille = new JPanel(); + place_grille.setSize(900,900); + /*creation grille*/ GridLayout gestionnaire = new GridLayout(9,9,-2,-2); - fenetre.setLayout(gestionnaire); + place_grille.setLayout(gestionnaire); if(editable){ JTextField[][] case_editable = null; @@ -33,7 +37,7 @@ public class grille extends JComponent{ case_editable[i][j].setBorder(new LineBorder(Color.BLACK, 5)); case_editable[i][j].setFont(new Font("Arial", Font.PLAIN, 30)); case_editable[i][j].setHorizontalAlignment(JTextField.CENTER); - fenetre.add(case_editable[i][j]); + place_grille.add(case_editable[i][j]); } } }else{ @@ -51,17 +55,22 @@ public class grille extends JComponent{ case_modifiable[i][j].setBorder(new LineBorder(Color.BLACK, 5)); case_modifiable[i][j].setFont(new Font("Arial", Font.PLAIN, 30)); case_modifiable[i][j].setHorizontalAlignment(JTextField.CENTER); - fenetre.add(case_modifiable[i][j]); + place_grille.add(case_modifiable[i][j]); } else { case_depart[i][j] = new JLabel(String.valueOf(grid_values[i][j])); case_depart[i][j].setBorder(new LineBorder(Color.BLACK, 5)); case_depart[i][j].setFont(new Font("Arial", Font.PLAIN, 30)); case_depart[i][j].setHorizontalAlignment(JTextField.CENTER); - fenetre.add(case_depart[i][j]); + place_grille.add(case_depart[i][j]); } } } } + JPanel bouton_grille = new JPanel(); + bouton_grille.setSize(900,200); + JButton verifier = new JButton("verifier"); + bouton_grille.add(verifier); + fenetre.add(bouton_grille,BorderLayout.SOUTH); /*affichage fenetre*/ fenetre.setVisible(true); diff --git a/Sudoku/main.class b/Sudoku/main.class deleted file mode 100644 index e0972326b7f457840406190867d88d2fc306e34b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 287 zcmYL^ziz@n48}hvfsha=e+cTP81&c}+-URYqOqKCnh|st>cgSl5x2+Ss~73c33x)wpD4}`E|Z0 z#M^6K9(iSzinPm%a(F@_i|X+}x~jy!yr!Zg+Is#1eM%zJBx+gF2t5oWSM*V?y1_TX RhSdLy2Va^JhLU?2{R2`3FUVPGyMR5C1)J(+f6YPMrN{a_r3e$ymQaJ{PoZ4w*Z#lMG-=ehOmxH=w;|_ za@!lf#n69fSmU;6=FMuu+wk5ml}U<*{b(iGrw` zRg+sWT!yZpPe(uEbguj}mO~7l zP{9TnbU%(MGU_yf4;Uh|nYv?I7LQ>7*HpS;hM`FxaFDPh9YUQ=@2D^%IzGZE!+^_W z&T|}Y%VpCcK*Bj@xYF_KBI_#q=EgIb$%$r5*c2|C zUQ>xa)iI6Qxv(~vpk_tDi zV+Nm5_NH;bbHc6~@{uVU^yW&#mM+7Mi>`m3kr*=gT*ECLUntU&XXy89On8W=GCz_E z<5xOvD~#$&ixpQ`p5$AGY(#MfUu*bA$2_tOVI?DmzG{OvP5V?s$@2gr_?E7bQo2da zr^>>UDelUYEu5xdMe!ZJ*RZIQQgcMUU-^J(OOPfnEfp4X_leFR?&(QZU28>09`^_Y z!Osha*B#;6H7fg=icuUYv4%A|@WcC5uN+l*OPa!t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XPtR)k@iRF!CEM;8??=FZ-ogExsJx3(6f|A2}?BpF&}%4Onx z>7)#j#b&Y)!4QTOJXSG+G(${C(lzc~ptnekR}%a@Tv&Qa{4hot#x+@fZ9>ZmL0)tz za8L65s5#uE(o*^s7n)~jk^mJ>8=*uZ7{fCK&sB`$#q~P)J)=4}+}+@Z)SUMJWk_9m zg$V_dDyHz7QuLduAGqm^ZQ9hI;97Q;+E6dfg`Q?%3~yAt#SE2_LgZ}0E5i1y5<}}* zpiApyK|zM0>jIqDxaFp2{KWEx=HFHmNzWE>{Yk9 z*wD9SYn#@Milw`r9R8T@$5`c}Y>O%z_V7-v>lq+CGPInB^4`j9-E~}?tJ~i%iMA2ZHGFbF32usOx<0g|+lwA=yuW0)nGrP~0>pwy&>j=@sH$52w=(fpNE3^_U*NdkMAqceaw zz2>n%r*!^A8VQ#@!mVEzIYMXXGdfe>z)o46Fild zBfLDpv8OfnmgLMe)GeBdK-0WR#uoyJ57L=r?34Eq9C9MVpcc0i5Me{!X9;RpCp z#yi~@6DPTkxpU5$J9oamKRyARW7|OnSsRv%8O#cl#{Sgz0$+{1tNxeDydHe zvejD8K@NEvj*9}^Kk)8jqA3)x=s_~es~8#Q1dUq fGc3HYt#F>fD%Ln!C}RU#X{F3J0S-$PIr91eZCqbU diff --git a/Sudoku/menu$5.class b/Sudoku/menu$5.class deleted file mode 100644 index a8e6b370784d43334538b73473779727af19a8df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 460 zcmZuuO-}+b5PgN!g=JCv{v>MR0X(=TPZ|>?5KRD$8V=qHjJRa!CfhEaP4ovD4<;V` z0sbiCbT3|P(s|SAdoR=J_s{1SfOBkn$RY2-@iBv0fy!7;We`a<3a=)&_+f-m4qNTsa0Ast7l31iifDy2w3+`E`#u_f#uxu^(KGjI810-BOC z!P&qH+Mzb2C}FckJS2hncBrVEPWqJG$$n%jGGks-@(?Ez8Vc;x+W(q0t?_ZaC*a-2 zX)>TzXbp7E1u*K-HMVXP;FObk(CjbBd diff --git a/Sudoku/menu$6.class b/Sudoku/menu$6.class deleted file mode 100644 index 3002fedff2a0b07122ade71c1431fe7dd2dc8203..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 460 zcmZuuO-lnY5PfM^x7}{Fet#AfJhUF%n-@jU(xT8-QR%_kwjJx1Z33HY{R@Kr8Sx-^ z@CW###K~T~7|6WIhXp9&*ULaD2>QR-iHtr(qC>aui(k$22ekvnP>^ z%&9=WR__&2K+%QgqXb{TnUG9bbwgUksfm>AgfgXAK-{~SW3eUdAGxRqR5S1J$pkbd zX@awX6|^I5NK(RP4K*Zz`F13!n@;+a+=czvR>F*VP052wCNvb-skQ$#Yg*&udQZT+ zRcSJyR%8u|wu?inV6&zi#7akU)FJbzhCVjz!%LRZ;zmrufE(Fy(D<~#S(Q=P%E1T38z%yb9PKsm%y9|J94&Q^F%#$C;r>zWR{$?? d@XC9I^Bh*O#^~_W*Rh#Z3fN-w*rLqH>lc>(T|58) diff --git a/Sudoku/menu.class b/Sudoku/menu.class deleted file mode 100644 index 600d73578daeba9b35f01d42b40a6ac50c93cb95..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2504 zcmZuzNpKrg5Pjd`XkGF{2s9NmvX9 z3}FpnhpL=7kqebVu0mB5#SxAiIdbJl6;&K4x<`^Nhv+cf|Ns8oulv8>U%&kO!;b*E z@wJRHluM{kP>Cvm`fFN7>o7HIu48oOnx1e4s!kb};hqsFZ)%>D5D*Bl(PBsXxWk@LJPqhLCH3CvvcgKyJx`?zrm^ zoRiIyY`j^)7Hkzz$e4l|H?Q^DidC9sY5_Uf~mXSzM6oz_PebjNqZaVTR6y9FA3fb3?#F_JOu zhV8jB!r068u3@PA6&%1pfgnTi*9EqhgwM|nYnC>rI|M;O^TQ_)(`IxtfEIzehYBpC z32hvzk+lv5PcZT=6zZJq7&mRp)yyu_n6pxppM*|Lz>I>0W+&`cSJaEx6Y zUoVf(lS1M7kU7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