From 9afcd3fbfdc9ef5cc821c3fd6e868cdafbba86a6 Mon Sep 17 00:00:00 2001 From: Emmanuel Srivastava Date: Tue, 28 Jan 2025 13:05:38 +0100 Subject: [PATCH] update --- DEV.2.1/TP/TP2-CompGraphique/Boutons.java | 34 +++++++++++++++++++++ DEV.2.1/TP/TP2-CompGraphique/Saisie.java | 15 +++++++++ DEV.2.1/TP/TP2-CompGraphique/Sirocco.class | Bin 0 -> 699 bytes DEV.2.1/TP/TP2-CompGraphique/Sirocco.java | 17 +++++++++++ 4 files changed, 66 insertions(+) create mode 100644 DEV.2.1/TP/TP2-CompGraphique/Boutons.java create mode 100644 DEV.2.1/TP/TP2-CompGraphique/Saisie.java create mode 100644 DEV.2.1/TP/TP2-CompGraphique/Sirocco.class create mode 100644 DEV.2.1/TP/TP2-CompGraphique/Sirocco.java diff --git a/DEV.2.1/TP/TP2-CompGraphique/Boutons.java b/DEV.2.1/TP/TP2-CompGraphique/Boutons.java new file mode 100644 index 0000000..d833de6 --- /dev/null +++ b/DEV.2.1/TP/TP2-CompGraphique/Boutons.java @@ -0,0 +1,34 @@ +import javax.swing.*; +import java.awt.*; + +public class Boutons +{ + public static void main(String[] args) + { + JFrame frame = new JFrame("Boutons"); + + JButton btn1 = new JButton("Luc Hernandez prof de DEV"); + btn1.setBounds(100,100,100,40); + + JButton btn2 = new JButton("Pierre"); + btn2.setBounds(50,100,100,40); + + JButton btn3 = new JButton("Louqa"); + btn3.setBounds(150,100,100,40); + + JButton btn4 = new JButton("ok"); + btn4.setBounds(200,100,100,40); + + JButton btn5 = new JButton("bou"); + btn5.setBounds(250,100,100,40); + + frame.add(btn1); + frame.add(btn2); + frame.add(btn3); + frame.add(btn4); + frame.add(btn5); + frame.setSize(300,300); + frame.setLayout(null); + frame.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV.2.1/TP/TP2-CompGraphique/Saisie.java b/DEV.2.1/TP/TP2-CompGraphique/Saisie.java new file mode 100644 index 0000000..c57aae1 --- /dev/null +++ b/DEV.2.1/TP/TP2-CompGraphique/Saisie.java @@ -0,0 +1,15 @@ +import javax.swing.JFrame; +import javax.swing.JTextField; + +public class Saisie { + public static void main(String[] args){ + JFrame fenetre = new JFrame("Saisie"); + + JTextField saisie = new JTextField(); + saisie.setColumns(0); + + frame.setSize(300,300); + frame.setLayout(null); + frame.setVisible(true); + } +} \ No newline at end of file diff --git a/DEV.2.1/TP/TP2-CompGraphique/Sirocco.class b/DEV.2.1/TP/TP2-CompGraphique/Sirocco.class new file mode 100644 index 0000000000000000000000000000000000000000..c83df989518c20da28b7987015d684fecda7bcf3 GIT binary patch literal 699 zcmX^0Z`VEs1_mbvBQ6Fe24;2!79Ivx1~x_pfvm)`ME#t^ymWp4q^#8B5=I6#o6Nk- z5<5l)W)00Sb_Nbc1|g853jN~p%)E4cFSnw^+*B?Gb_Qk;!Og?K!@$ePz+RkM5}a9; z%E-W~;pwRv29o3FVGsbxaTlkS_~a)imSpDVfy9M)7=#%_7#SprQ%hV@(-KQ_N}O}@ zi&OmzQj5Tf7#UbJJVBO=p0{Gd(XiHLrx7L4lD$6s$L~ zyhPtAzbGZO$S1KfzqEvdL5Y!p%{eu%B((_ScoiN7RR%Ri2Ij<+6h;P3sEr_9&iT0o z`FW{%CDur;fP^a873>TeJPeu)T8s=_#i=D>nZ=n&IjJD8MuEI4!N|bkoS%})$iVND znV0HUnwykb6p{#0lAD;B$H*Y25shRr+<%M=T*3LJMaijdnIQ9cpaG)?@(zO{gEj*b z0|+oNFoNQofssLnfq_Amfsuicfq{WlYdZtuMg|53Mh0C51_m~;APWO0gC2uERB15- zGXpaN1B3N$2KLD944gjNf{b4T8FjWXaA^yq2&8Od;L~Q?#vr(xK{QfGd^>}ruMYDz z1{rM~A;oPB%Gxa37}OCKs4;MYt>Iu`XAolGV31