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 0000000..bc9bb19 Binary files /dev/null and b/DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.class differ 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 0000000..0b3ea3e Binary files /dev/null and b/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.class differ diff --git a/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java b/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java new file mode 100644 index 0000000..864f758 --- /dev/null +++ b/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java @@ -0,0 +1,18 @@ +import javax.swing.*; +import java.awt.*; + +public class MainFond { + public static void main(String[] args) { + JFrame frame = new JFrame("Fond"); + frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + + JPanel panel = new JPanel(); + + Fond test = new Fond(); + + frame.add(panel, BorderLayout.CENTER); + frame.setSize(500,500); + frame.setLocation(500,250); + frame.setVisible(true); + } +} \ No newline at end of file