From da8751e10781028fcffb069da9c57bfc176b86b2 Mon Sep 17 00:00:00 2001 From: Simon Saye Babu Date: Mon, 27 Mar 2023 11:21:24 +0200 Subject: [PATCH] jsp --- DEV2.1/TP2/Date.java | 9 +------ DEV2.1/TP3/Feuille.java | 9 +++++++ DEV2.1/TP3/gris.java | 34 ++++++++++++++++++++++++++ DEV2.1/TP4/Chien.class | Bin 0 -> 995 bytes DEV2.1/TP4/Chien.java | 23 ++++++++++++++++++ DEV2.1/TP4/Damier.class | Bin 0 -> 1071 bytes DEV2.1/TP4/Damier.java | 34 ++++++++++++++++++++++++++ DEV2.1/TP4/Moto.class | Bin 0 -> 363 bytes DEV2.1/TP4/Moto.java | 9 +++++++ DEV2.1/TP4/Moyenne.class | Bin 0 -> 861 bytes DEV2.1/TP4/Moyenne.java | 49 ++++++++++++++++++++++++++++++++++++++ DEV2.1/TP4/Test.class | Bin 0 -> 1162 bytes DEV2.1/TP4/Test.java | 24 +++++++++++++++++++ DEV2.1/TP4/Vehicule.class | Bin 0 -> 160 bytes DEV2.1/TP4/Vehicule.java | 4 ++++ DEV2.1/TP4/Voiture.class | Bin 0 -> 369 bytes DEV2.1/TP4/Voiture.java | 9 +++++++ DEV2.1/TP4/formes.java | 22 +++++++++++++++++ 18 files changed, 218 insertions(+), 8 deletions(-) create mode 100644 DEV2.1/TP3/Feuille.java create mode 100644 DEV2.1/TP3/gris.java create mode 100644 DEV2.1/TP4/Chien.class create mode 100644 DEV2.1/TP4/Chien.java create mode 100644 DEV2.1/TP4/Damier.class create mode 100644 DEV2.1/TP4/Damier.java create mode 100644 DEV2.1/TP4/Moto.class create mode 100644 DEV2.1/TP4/Moto.java create mode 100644 DEV2.1/TP4/Moyenne.class create mode 100644 DEV2.1/TP4/Moyenne.java create mode 100644 DEV2.1/TP4/Test.class create mode 100644 DEV2.1/TP4/Test.java create mode 100644 DEV2.1/TP4/Vehicule.class create mode 100644 DEV2.1/TP4/Vehicule.java create mode 100644 DEV2.1/TP4/Voiture.class create mode 100644 DEV2.1/TP4/Voiture.java create mode 100644 DEV2.1/TP4/formes.java diff --git a/DEV2.1/TP2/Date.java b/DEV2.1/TP2/Date.java index 0d1792b..eb3682f 100644 --- a/DEV2.1/TP2/Date.java +++ b/DEV2.1/TP2/Date.java @@ -68,12 +68,5 @@ public class Date } } - - - public static void main(String[] args) - { - Date test = new Date(2023,12,30); - System.out.println(test.toString()); - System.out.println(test.lendemain()); - } } + diff --git a/DEV2.1/TP3/Feuille.java b/DEV2.1/TP3/Feuille.java new file mode 100644 index 0000000..c2c382f --- /dev/null +++ b/DEV2.1/TP3/Feuille.java @@ -0,0 +1,9 @@ +Public class Feuille extends Paper +{ + public Feuille() + { + super(); + super.setSize(0.797167,1.168568); + super.setImageableArea(0.06,0.06,0.75,1.09); + } +} \ No newline at end of file diff --git a/DEV2.1/TP3/gris.java b/DEV2.1/TP3/gris.java new file mode 100644 index 0000000..0808a78 --- /dev/null +++ b/DEV2.1/TP3/gris.java @@ -0,0 +1,34 @@ +Public class Gris extends Color +{ + private float gr; + + public Gris(gr) + { + super(gr,gr,gr); + } + getHeight() + { + + } + getWidth() + { + + } + getImageableHeight() + { + + } + getImageableWidht() + { + + } + getImageableX() + { + + } + getImageableY() + { + + } + +} diff --git a/DEV2.1/TP4/Chien.class b/DEV2.1/TP4/Chien.class new file mode 100644 index 0000000000000000000000000000000000000000..c02fa6c16a0427f63e3e1486dc4ff059170c2419 GIT binary patch literal 995 zcmZuwZBr6a6n-u&EUu)8f|k8tF9srFrIl}$Vw4V|Gc*?U=>k`}w(Q!nX!)=D0y8o7 z1NuFEZaR1IEvIGY-1G9Bd!BRl@axa_p8)3Y%D`3J)^W#xPn~xSXt<}0NhR(pk<^h2 zVah-s(n?J0$b>MXLRlTNAv`b;Q6V25hVUqaIi=1k@mR+b9Zwm8%hHnWGX{S$wacL8 z?3!R0EJ#ZfTaAiv-tdY^9<9Np#Sl+^DD3k?o;A5u&z4+ATJL%Y>Xn4+1es-n%rb9DuY7g%73ot0R#otkiZMX2qZuw3DUv5K`5 zB4_N@TCQtTum0_pRDc|*Mdi?nrJbEH))m2*$TI}IJ{clj6>lWlm3>il37gzdW9e%O z_q67CvNt-_aL>2JEnXLnH$a_`C3#F^2_!eX+aL4D-ZI^sX*b38 zfpAW!8Wh@7rt@_{z4a8S?eIMm7Z=Rm>y!k>1{(#`~7W%y67uMjSl*Y88XA^Omv`) z!E_gqa&)MJXdAQjZH%7NTEqYm&=I2F5Rr?+Kmz@k#1+g^Y#xKO Zv=MAl^c|wu!w5bhh66$}LaOd3{sMR7-oO9= literal 0 HcmV?d00001 diff --git a/DEV2.1/TP4/Chien.java b/DEV2.1/TP4/Chien.java new file mode 100644 index 0000000..df7905d --- /dev/null +++ b/DEV2.1/TP4/Chien.java @@ -0,0 +1,23 @@ +import javax.swing.*; +import java.awt.*; + +public class Chien { + public static void main(String[] args) { + + JFrame fenetre = new JFrame(); + FlowLayout main = new FlowLayout(FlowLayout.CENTER); + fenetre.setLayout(main); + fenetre.setSize(500, 500); + fenetre.setLocation(0, 0); + + JLabel question = new JLabel("Aimez-vous les chiens ?"); + question.setHorizontalAlignment(JLabel.CENTER); + fenetre.add(question, BorderLayout.CENTER); + fenetre.add(new JButton("Oui")); + fenetre.add(new JButton("Non")); + fenetre.add(new JButton("NSPP")); + + fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + fenetre.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV2.1/TP4/Damier.class b/DEV2.1/TP4/Damier.class new file mode 100644 index 0000000000000000000000000000000000000000..282fc50d4397160e500b064c289ca55991644f9f GIT binary patch literal 1071 zcmZuxTTc^F5dIFk+tY5ByG5`fprS1nDu^H#FHmkJTue$JXkt9jrCDruo9$M_2Vdk@ z_~;AI`cRA{{s4ZDFB&4w*`lDKX=Z2U%$fPVZ>K%__4ONoL8Nswqf5ti+~ByWLy>`k zZfS0D+}6PnlR=!LM~9BC5bhu$y?%X`G2#Nw+AYRbu) z4D}0^Z7!7y8>YJ=Hu98F3&OG)T4K)^w#93a%nLi0%y_P4=f>p4+KeYQUoDEFU(Yc} zC`4 zC`K5X{lQ|#OU}Ahc0ueqWlwgX^D&J7fBmVj%{<3L1CQ|7z!OXun3P@$QwF9nV_+6@ zBtR7pL&F)b<&AA~)1!$OkY#8*D@@y-nKNC6U{SawlR}0_>;i?-47_A|8S5=cpvBT@ zsacpZ3(ltSEQh2G$;c z3pJgj7n5_HvYjPH=NeaQBoJ+FF1<2MJ0P-D)ALVFq3GDA?Ty9HH~*7lXr%#D=9Vbu zy;R;Qnaf4fJtd^Ze3m*@tXd_jx<;{Q@l|x8iMCmOYQW?UkZqx;ot})ITF(L4Cvq4r zlMVPu6(O{ujeII)VW_n6z+R6s@C7yFhfvlJpe`mF*?0O@pd}Qgg1{m8dNg`~;8LQu zf{-$#M%3s>Oe;fLL?dVD5IS89j|L)YM0=?fKcKEH@EJx0wfhK5w~pLITcCpawLOjP zpB(L}WDgURX-KFQG)km3KGJz22ExS=L_Ohcqn}>~!id8_AL=lS2HM0Xq=|lpXuqI} zEkseEe2LC?srnr{@t!2QLY=x1I6*%&jws`}%F#~p93#k%<=?@CW## z#J3^}!p_&5_hx24KHuH}9AGPgk6s85>jC=8z72&Q+@qXnI@DfLBrm+AUC%?cuHlkG36x?$BH49D~IJ{=WlIU7xy+LW_HK{Tn_I@hPh zD#G)ssrD@^Mu;eeLcj$U6?Fg9m)TtBjUbrnTa&ki#x9Tc!P{uO7Xd%yGUF8bWmbD| zm;q7p3Q7DII8UquvBlW4x%bUcSozWHFj|eDJi~eTrQ0PSS+I%@y&b>JXi>N4KK>&r KHoC+dtbGA`o-~mF literal 0 HcmV?d00001 diff --git a/DEV2.1/TP4/Moto.java b/DEV2.1/TP4/Moto.java new file mode 100644 index 0000000..fb26829 --- /dev/null +++ b/DEV2.1/TP4/Moto.java @@ -0,0 +1,9 @@ +public class Moto implements Vehicule{ + public int nbRoues=2; + public int nbRoues() { + return nbRoues; + } + public String sorte() { + return "Moto"; + } +} \ No newline at end of file diff --git a/DEV2.1/TP4/Moyenne.class b/DEV2.1/TP4/Moyenne.class new file mode 100644 index 0000000000000000000000000000000000000000..38d86fb0a0dc68fc3c3133cde0dfb81cb8632e62 GIT binary patch literal 861 zcmbVJT}vB56g`vOWKFUft4;hi7PYSXVERzo2c^&|0Y%$~h#4*pAuI$uFzKfk3-dyZBra<0Yx7< z&~d;12P4O(9?GO)Feaac;S*z=7!wxb#RGBLno@I?vu5*&tEH0By t0<*IVJ%i#hk%xS}|fJm_gwAgbvKBesl!8X&=B%uBj|A6|a z51?}Ng*Sf`dZ(?2BIIH2+-1J|-8*;k`|!sv08?1i5Wt9nt199u5-LVjj42q`pkP8l zTth^<6B?oziC_{*1=lomU_`}rDQ`q^6H_W~NqJjZ?x?scmMD=m?s}6FK*xFXGjtt+trWI+(PL2Z!uI@{%$XIQ zU@)KiylieCeBQK+ewmxaO<}vX>+<&#+roEEN}^JT>)C=B_DRIINq2{sC6`vJ(z(vdb~nYB7CYW)`+)7 za+LpoP;FtWTIEiOVWLU+*p##+X|QXyoDR0RqUOX|Ck57I9FgdBT4v;oTl96m1-2?kV z8%8D|TsH>kK@Q;p?Pcg5RD?*rZu^PAde8{w)S-=su#f)iYnwzK;&tb{bu~I5YMg1_N!3?uOPQwV2UM+AjKbaaM8()VU1N?*Wv% u6B_9TmC}uI#OR083ywaRb=@CW## z#J5rugx#H)_c1g3`Stz*;0QY*eDpi;uo+;W?AcP-7N|12u3Ehi$c13##FVBv6}ZDu zBJj?tTP^5LOsOy1`%Kq2X;u&+O|`$M>W0-|IGW7Uhjd(|v-6>s+53 z>xh!dG;OU9tuR6dVFZPM3oHpi@2|&IHrIJ02oil~^0v^}=juMVAumk`_$`+i8}VIb zbpVGM5XNtiSiQn|X2r=CBWH8(N29Q|^z1QOj~~CldHj{zA)r{WjxJx@ewWdrZr^?S MCsZVQ#2jpV1Am7%Hvj+t literal 0 HcmV?d00001 diff --git a/DEV2.1/TP4/Voiture.java b/DEV2.1/TP4/Voiture.java new file mode 100644 index 0000000..79f71ca --- /dev/null +++ b/DEV2.1/TP4/Voiture.java @@ -0,0 +1,9 @@ +public class Voiture implements Vehicule{ + public int nbRoues=4; + public int nbRoues() { + return nbRoues; + } + public String sorte() { + return "Voiture"; + } +} \ No newline at end of file diff --git a/DEV2.1/TP4/formes.java b/DEV2.1/TP4/formes.java new file mode 100644 index 0000000..a9192bf --- /dev/null +++ b/DEV2.1/TP4/formes.java @@ -0,0 +1,22 @@ +import javax.swing.*; +import java.awt.*; + +public class formes extends JComponent{ + + public void horloge(Graphics pinceau) + { + + } + + public static void main(String[] args) { + + DisplayGraphics m = new DisplayGraphics(); + JFrame fenetre = new JFrame(); + fenetre.add(m); + fenetre.setSize(1000, 1000); + fenetre.setLocation(0, 0); + + fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + fenetre.setVisible(true); + } +} \ No newline at end of file