From 42bb92022a90b5253a0d68b8383f89fc82ef3fbd Mon Sep 17 00:00:00 2001 From: stiti Date: Sun, 10 Mar 2024 16:28:28 +0100 Subject: [PATCH] ajout vieux sujet --- .../Entrainement/SUJETA/EXO2/Manie.java | 3 ++ .../SUJETA/EXO2/Sudoku/Menu.class | Bin 1688 -> 0 bytes .../SUJETA/EXO2/Sudoku/Nuance.java | 9 ----- .../DEV2.1/Entrainement/SUJETA/EXO3/Menu.java | 33 ++++++++++++++++++ .../Entrainement/SUJETA/EXO3/MenuApp.class | Bin 0 -> 1727 bytes .../Entrainement/SUJETC/EXO1/EXO1.class | Bin 0 -> 1183 bytes .../DEV2.1/Entrainement/SUJETC/EXO1/EXO1.java | 23 ++++++++++++ 7 files changed, 59 insertions(+), 9 deletions(-) create mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Manie.java delete mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Sudoku/Menu.class delete mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Sudoku/Nuance.java create mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO3/Menu.java create mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO3/MenuApp.class create mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETC/EXO1/EXO1.class create mode 100644 BUT1/CONTROLE/DEV2.1/Entrainement/SUJETC/EXO1/EXO1.java diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Manie.java b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Manie.java new file mode 100644 index 0000000..edbe997 --- /dev/null +++ b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Manie.java @@ -0,0 +1,3 @@ +public class Manie{ + +} diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Sudoku/Menu.class b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Sudoku/Menu.class deleted file mode 100644 index 5cdb358ab2e95d854ef6446b6d7f7eea54dd0f63..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1688 zcma)6OLH4V5dOwqYvuJivgP=Vjp8^Ut&Nog2w(+6tf0g}%1e%n6JBF$YzFT`wL6={ zocR?Txlr7IgPe-1eBnm%ANU)b2tAU@Rti@Nm1=gUxBKg_zwVho{&{``;2O3p^q|*- zVWSTThV-}mF@Ktmo=AT;f2$O7PcS5|N?)oKhTd$hmPC@ls0cr{U}3;S(uR#ehGZnv zx>PO&jAqLkC+~7Xsj85`3b~s0PuUp4FvA2nUl%((c2&_0B5|i7Lat=s6LxkjS2Hof zFwz3yPgMR!DC=duAH>Q+8l#%*7(-unja)VCgpEl|G4vB`+mB(oLqf;5Z58hGT@ex$ z6R&mPk853xl?r?d)0oxpgBmtt;~eIwZeFi5I9-6nz-t7)@Kqt#E>&kaG3wxX8yB>s zMuTtfX~UZ~vdA%5M6xC$xuvBtvJZ2$ek@?o#9KC&kY^a`5^q0J!XpM$I_cWZC4>B3 z(o~VMf_sG|E-{p9B9^WzzRTNI%NNeukW-irwFT&eTO_i?9MeBm9gj zcYUEv+kxkCzb=+6yp4BEyldl%?rFONFXv-08#=p7VlCi(8z1O~8se!`X_~2mjjQ;O z7>6-6GnajI$|!W1?#I5*Nr{4mkMOaHYc^IRW|3T6+_pk{YMf zLI@t0ROz70y{$T**Sq2J6@7Wl5Jr-CYd=6{(OnDnfk|)T1FJQVCS` zh^*VFphP>G>J5BmV$;S$JYtwT8Hsl7G}1a9LGT^Et%7i$WbwLpe|F2#32JA&Nv(E8 zG+z#ay|_{6>PF|Rc3EBuT;FeqZukHHv7PeOv7M9Dx->e-Mee#)sYHRnUh{ns7F`}i zA~NwM!-fB7a$0#NzGj$xwJTk5Z7t}y>kCo;dO;TqO0?df-7oZR(zEIufH`TiiGC;1 z#2M!h>CJ^B;{a!y7+3EGL{v3VD6wdxQP- z;xDI(^N!KP8^0244{p-BgaKL;FesIUBvQ1W!5}W-44tVIiuAsQ5gL)RxQ|hK2gcF! zg6^3C<2?FNK4xF01Z2jvbMymJzrjggY~r%<4DUJ5u?#%J$_a}xDixTZ zb&~Q;VVF2fVYZcxL>V5k^o(|NnQQ3;SckASNt^2%8i=*ZNwjj#kjHJZ_23Tf($gmE V1G3$t67J!1vRGvK0$+h+@?WZ8q?7;v diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Sudoku/Nuance.java b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Sudoku/Nuance.java deleted file mode 100644 index e6a0c6e..0000000 --- a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO2/Sudoku/Nuance.java +++ /dev/null @@ -1,9 +0,0 @@ -import javax.swing.*; -import java.awt.*; - -public class Nuance { - private JPanel[] tableauPanneauNuance; - public Nuance(){ - } - -} \ No newline at end of file diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO3/Menu.java b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO3/Menu.java new file mode 100644 index 0000000..f5def1a --- /dev/null +++ b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO3/Menu.java @@ -0,0 +1,33 @@ +import javax.swing.*; +import java.awt.*; + +public class Menu { + private JButton[] boutons; + + public Menu(String args[]) { + JFrame fenetre = new JFrame(); + fenetre.setSize(500,500); + fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + + this.boutons = new JButton[args.length]; + + JPanel panneau = new JPanel(); + panneau.setLayout(new GridLayout(args.length, 1)); + + int i = 0; + for (String element : args) { + this.boutons[i] = new JButton(element); + panneau.add(this.boutons[i]); + i++; + } + + fenetre.add(panneau); + + // Utiliser pack() pour ajuster la taille de la fenĂȘtre en fonction des composants + fenetre.setVisible(true); + } + + public static void main(String[] args) { + Menu test = new Menu(args); + } +} diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO3/MenuApp.class b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETA/EXO3/MenuApp.class new file mode 100644 index 0000000000000000000000000000000000000000..7733cab2f7fc52d1d36349f73656e5e3aadb2189 GIT binary patch literal 1727 zcma)6TUQ%Z6#fn*nK&H;f=~h!OHDBs+9)bjQZFPF8cd)PNQHVkB&RTCGLtoP0`l%J z@x^CfLRVRfcU}Gle}_-jeKMgLl-1?KoH=Koy}y0?&i?)H7v}($@Pm#%^lJzi2qVHU z^o$?zti|p9?8e?RQIiaj`=)Km&lviXscMX@q6Xf8PG`4eGo+GFNj2X^oia({~< zoGcQAjwvLR>zBFB_l28NuHNlJUX*Js-;z>gG>b8Xk~WaR9JPek>kR1t zR>5gB9b4G)q9@8hPpIK872{R3dB?2_*Y_XAdlcxph=pPX~-KWV3|Qvt*6ct32Lq&4lUXB%7Jsdx?N-#yOOX~LMk|Q0vs%vwped9 z_Jq5ocuN-zZW7Z6Dw2{Y^JYh^VU3z{1@}qO;*GsJPbjkl6;ZD^Ew?6COa*3iW4o)0 zP66f}M|#rb&9aaOPTd=Ja0?dqJmG2hhT-;qYI0S28opzge!VJX|Ggg>93@E`UN!LIj;5e)$FBlO8PWU z6?3~bzY$WDZp0aecVZ)_7%gQYZH%8`YUd2oJL&V#DQ=$PopO5p&iO*9e<3^?9u57B znLDH5`NhZ?W_RL|QzRF)xwzIw>hVuu_RGsZGjp+Q8}Db@_%OrTxR(jFkyGLHb;6&g z`3(AW4A6ugr0j=r4>9C1f+FoVFor6|v5Ppqry*I#Bp#B*1o~bgjfjS#hG7j;v|*I< xUq}q;ioxBqdR2Rl&wEwys}@B+N}W*3Snq_vP$Ag{9?`c;5}jb4;9GJX{|8LNtzrNG literal 0 HcmV?d00001 diff --git a/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETC/EXO1/EXO1.class b/BUT1/CONTROLE/DEV2.1/Entrainement/SUJETC/EXO1/EXO1.class new file mode 100644 index 0000000000000000000000000000000000000000..9582ae467bba958d1753896662e48604e827cd02 GIT binary patch literal 1183 zcmaJ>?M@Rx6g@+cZI`7Wg(8Zm2-p^-0)7`!XhASVj1biLYbX;~*zPpDvqav+$510+ zAn^fwDC3>oA|*8b*qxcqx#!$-_ul^gbNmayES5~PAZDP|!X>mZbnWmxo_Dyrm0#J| z5f#PIHf_7Mnqi1#vg;<|NEk3Jw8LUZp23&7+9t5a-A!2y!KDO}=rqt};WD}zTIWBk zOfVRG+!29CJ61B#bE+9A+sVHRqfMj`)4_dO<_bf1In-%@6g1|lg=;zs(-ogpNd_B^ z&{5Yd3~If)&}26`y=mbVh8X&)d{-2uTjA=xt+r|BEAA?vA)P6evXM?`e^q(5yG1%l zoy!PD4cxJiLH0D^2(|Akq3z0mO4S?1+cN)_f)!B+UJWV6EZoIChPaXuF+)$LsaziS z4NO>=#1um+^nIR>jMX%|MGAM44<`y z?e584k&jGAgeKUeV#cFMI>@3?mmjHA~gND~7@ULupDPUsS9ljUN!BH;oAG zT6DvQE46TV!}MT+;Q^gq6Oz$7lsf{;{e*FVj@$`SACJ&`fOIbR1L;HbA7J1cp%@<0 zJ5BLG0