From ee94179c7102ed2f4e17234f83550650e66da288 Mon Sep 17 00:00:00 2001 From: pourchot Date: Wed, 18 Sep 2024 17:24:33 +0200 Subject: [PATCH] tp3 --- DEV3.1/TP3:MisesEnPage/Boutons/Boutons.class | Bin 2372 -> 1497 bytes DEV3.1/TP3:MisesEnPage/Boutons/Boutons.java | 30 +------------ .../TP3:MisesEnPage/Boutons/Fenetre$1.class | Bin 0 -> 628 bytes DEV3.1/TP3:MisesEnPage/Boutons/Fenetre.class | Bin 0 -> 1184 bytes DEV3.1/TP3:MisesEnPage/Boutons/Fenetre.java | 40 ++++++++++++++++++ DEV3.1/TP3:MisesEnPage/Boutons/Main.class | Bin 699 -> 412 bytes DEV3.1/TP3:MisesEnPage/Boutons/Main.java | 7 +-- 7 files changed, 42 insertions(+), 35 deletions(-) create mode 100644 DEV3.1/TP3:MisesEnPage/Boutons/Fenetre$1.class create mode 100644 DEV3.1/TP3:MisesEnPage/Boutons/Fenetre.class create mode 100644 DEV3.1/TP3:MisesEnPage/Boutons/Fenetre.java diff --git a/DEV3.1/TP3:MisesEnPage/Boutons/Boutons.class b/DEV3.1/TP3:MisesEnPage/Boutons/Boutons.class index e012ebbf0391da65e1ed7b27dfc95b094f6ed6fb..79d7a360878ea3ae5f0b069afb23339cd46575f4 100644 GIT binary patch literal 1497 zcmbW1%TFD36vsb@`(!%hS)fyDX=`h_6nYBg^pEJfTVK~kt&aUZ#lv+J9FP{>ZqxPiASBnSP#4{r&v*35j0v`~M#+prxM8d@ifVRqG3w%M?xqyw4xG}UU@m8MpYYia8B=uXq1M^B2T{UoyP zW|$rJ*SuieF9sHkIEM9Q*#(L&7PMJ}YcX!8=6gj7yn6oYl4QiJT-3C)Mt_pm89 za0^~3ijYx*XCn+LM_6+GAY8X-C041T-KK*pT2Mi=c&z1*8}zD8=K;E9kZU&G2B|c5 zn|?lAHfXQSb%R<4UH1IKa%kWiHvI;UKk!#q4KQeP(*Q{~SXwTY40PM(4liqQn~|Fd zJ#6qHo8d$F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vswr?qg#&{G<*3U6BQ*6)93jc=PrDfNV6H|l-$(UNWVZsNCDTY$LiiSWo8cKK-O@?LmSl|Ct~o91wlM5(^xr{0#$?8ba8H?R;zP zLM`@FJHq!*FX}Ol23$cSZlMV&H1iR*gAb^kSV0S3A^J7Gtlq$GyoEjZ0DJK<_Te+M z;UU`bC0pt-*}max>IWRaPi(NC*v?TG{&h65VrMjctwX)y&xW*7s2R5c}E42R=bvYv@C0Tvl@_U91YKwoi^De*{D@ z$C_MY9p;(m>&)v7I(-wzxy#=oe`3GN9B$*`C(DQbYs9w+>)9HXB<$4Iury((1BcK2 E4FeJHKL7v# diff --git a/DEV3.1/TP3:MisesEnPage/Boutons/Boutons.java b/DEV3.1/TP3:MisesEnPage/Boutons/Boutons.java index 9fe145b..add9762 100644 --- a/DEV3.1/TP3:MisesEnPage/Boutons/Boutons.java +++ b/DEV3.1/TP3:MisesEnPage/Boutons/Boutons.java @@ -4,7 +4,7 @@ import java.awt.event.*; import java.lang.*; -public class Boutons extends JPanel implements WindowListener{ +public class Boutons extends JPanel{ public Boutons() { super(); @@ -72,32 +72,4 @@ public class Boutons extends JPanel implements WindowListener{ this.add(five, gbc); } - - public void windowDeactivated(WindowEvent evenement){ - } - - public void windowActivated(WindowEvent evenement){ - } - - public void windowClosed(WindowEvent evenement){ - } - - public void windowClosing(WindowEvent evenement){ - JOptionPane exit = new JOptionPane(); - int rep = exit.showConfirmDialog(this, "Etes vous certain de vouloir quitter?", "Quitter", JOptionPane.YES_NO_OPTION); - if (rep == JOptionPane.YES_OPTION){ - Main.fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - } else if (rep == JOptionPane.NO_OPTION){ - Main.fenetre.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); - } - } - - public void windowDeiconified(WindowEvent evenement){ - } - - public void windowIconified(WindowEvent evenement){ - } - - public void windowOpened(WindowEvent evenement){ - } } \ No newline at end of file diff --git a/DEV3.1/TP3:MisesEnPage/Boutons/Fenetre$1.class b/DEV3.1/TP3:MisesEnPage/Boutons/Fenetre$1.class new file mode 100644 index 0000000000000000000000000000000000000000..a3599ad6b522ccef7c182af01c9d0e3476ef3233 GIT binary patch literal 628 zcmZuu(M}UV6g|@}-FBIlwMq+$f?9Q{iPdKeiB^atg_x9J;@i-@!fHF)>IdkWndvpK%{q-BbOGGu4Q1;`xCuK0$;vNQ4H#7t8|0oqvcu_|#Bw*tN3Wm8B(O9{G##8xjww4-$75!~eX^%%{6=MJLfp6EmS*`N z{c&m%eIl?P4gNdnj+=VRsn>^AjXv(HX(1X6)3a~XFxIR-f46hK%j)mJen<%rb-%>hPX*TC}tYgW?r1iQ$TPtcyqodI3r+i$-6@hEiuc>{R_DrJ}C2DJ+ z;@nBVsSI;m^Kl&?35?UX5rsyD<~tb@=4z#7`Pby3sab>6p^EF4^9_OXLtf=257W45 z3%(`bS6V|o{Vb8&K4x)8pd>q;A9UD>4qG}Qgo*`bPvut!gsq+R$f53%$C)l}4Q!E? zVG$n-%2^Sx@>%31mDB3v40|P=}fsNW^4V-$LDw?;BihnI?;PQ&d8~} zw2dy~v5zOH3lzJw%3ey_ROJM!cDhCvPdSZzuDQC&fp=BxVHwYSJja(zp~L@Da7CLI zyWwNaF0|Xx$$)!A;6~KpYof)a*i8F-D*j&PjK=a_#UIv|DP9VUZ5!Esy&(rfFK;_a zJ>--9*@EgNNa`2n{006fL8(@l5W^jjR8H~532TgiHJ=Bn>C&0DYhSG#m-%CwwqKOaS zLm6j*$Yp1C_BY>rvp>I|-vBOgXrTd(L$}dHi=j6QU&28WrqjV~G!t>o&>G29<`)c_ z>jfqZm>iakHf#p{I+Q5`e-^38Gr?f`<1!suaM0!G+1S7)Ayu8hT8cc7OBp4^>+XXW zC{&~TYVky+t}jz@vzkXDy9-NbUQFq`kA7`$l4mlV4!wZE7{y8D(V8q)SuDmKWiL(Z_Cuo|2HN8gJnG2Rb#a l{u1aA@6edNfAN!|4z$1E+^@0q4qi8vBTSOqr{)F@{s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