From ec7b028a90fa340605e043b74edea6ea3fd14d38 Mon Sep 17 00:00:00 2001 From: Emmanuel Srivastava Date: Wed, 5 Mar 2025 12:29:30 +0100 Subject: [PATCH] update --- .../TP7-Polymorphisme/3./MainPolyligne.java | 12 ++++++++++++ .../TP/TP7-Polymorphisme/3./Polyligne.java | 9 +++++++++ DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.class | Bin 0 -> 499 bytes DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java | 16 ++++++++++++++++ .../TP/TP8-Evenements/1.Fond/MainFond.class | Bin 0 -> 647 bytes .../TP/TP8-Evenements/1.Fond/MainFond.java | 18 ++++++++++++++++++ 6 files changed, 55 insertions(+) create mode 100644 DEV.2.1/TP/TP7-Polymorphisme/3./MainPolyligne.java create mode 100644 DEV.2.1/TP/TP7-Polymorphisme/3./Polyligne.java create mode 100644 DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.class create mode 100644 DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java create mode 100644 DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.class create mode 100644 DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java diff --git a/DEV.2.1/TP/TP7-Polymorphisme/3./MainPolyligne.java b/DEV.2.1/TP/TP7-Polymorphisme/3./MainPolyligne.java new file mode 100644 index 0000000..a5963f4 --- /dev/null +++ b/DEV.2.1/TP/TP7-Polymorphisme/3./MainPolyligne.java @@ -0,0 +1,12 @@ +public class MainPolyligne { + public static void main(String[] args) { + JFrame frame = new JFrame("Polyligne"); + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + + Polyligne truc = new Polyligne(); + + frame.setSize(500,500); + frame.setLocation(500,250); + frame.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV.2.1/TP/TP7-Polymorphisme/3./Polyligne.java b/DEV.2.1/TP/TP7-Polymorphisme/3./Polyligne.java new file mode 100644 index 0000000..3f20586 --- /dev/null +++ b/DEV.2.1/TP/TP7-Polymorphisme/3./Polyligne.java @@ -0,0 +1,9 @@ +import java.awt.Point; + +public class Polyligne { + public Polyligne() { + + } + + +} \ No newline at end of file diff --git a/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.class b/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.class new file mode 100644 index 0000000000000000000000000000000000000000..bc9bb1957b13ea22d25d557694c5db69fc69039a GIT binary patch literal 499 zcmX^0Z`VEs1_mbvWiAFL24;2!79Ivx1~x_pfvm)`ME#t^ymWp4q^#8B5=I6#o6Nk- z5<5l)W)00Sb_Nbc24Rq*3jN~p%)E4cFQ?LylKeal1};Vh7U#;uJT3-y1|E=cyo?N@ z8a^Pk5CeltiZb)ktu@0q8Tc6l*ck+Q7`PaO7#UdH^7B#{8AQQK(Tug`U=U$sVE0W- zPt7Yy1ZfoGVGv;u;$VdBMjzL! z86DvKjbKX^7#J9o7&sUh7&sVM7&sXO8Mqka7`Pd<8F(4282A{x82A~Y7z7v?85F^e GRRRF;!&&kG literal 0 HcmV?d00001 diff --git a/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java b/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java new file mode 100644 index 0000000..620c215 --- /dev/null +++ b/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java @@ -0,0 +1,16 @@ +import java.awt.*; +import javax.swing.*; + +public class Fond { + private JButton Cyan, Magenta, Jaune; + + public Fond() { + this.Cyan = new JButton("Cyan"); + this.Magenta = new JButton("Magenta"); + this.Jaune = new JButton("Jaune"); + + this.Cyan.setBounds(100,50,100,20); + this.Magenta.setBounds(220,50,100,20); + this.Jaune.setBounds(320,50,100,20); + } +} \ No newline at end of file diff --git a/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.class b/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.class new file mode 100644 index 0000000000000000000000000000000000000000..0b3ea3ef1213694e151b48d3a771f7715862543c GIT binary patch literal 647 zcmX^0Z`VEs1_mbvJuU_&24;2!79Ivx1~x_pfvm)`ME#t^ymWp4q^#8B5=I6#o6Nk- z5<5l)W)00Sb_Nbc1|g853jN~p%)E4cFSnw^+*A$*E=C3xxBR>mE(Uf69*}9gj0~b0 zJ|LwK^MXr?GV{`{HN!wE_<0xv7z7y^B#Ki@TvF2#OLIz`bMlK*{R>iy5=%1k^B5Ue zG(17}38UK=keHX6!^I#3ayAzigD3+t$Uq4m21y1fMh51@loUn=EvUtb< zq(_;DL4`q;k%6l?wInRFI5R0H73Ah9kek&R8900sGxI>D9 zfQf+-6n6}a3>pj!46+Q242%p646It)85lP*FfcGOXfiM`uz>|x7&sZU7_^~E%Ndv% zSQr=>>~}M;M+$LnXW;hHX4}TVx0^vIayx^F?`{Us$n6Ybe%d