From c9760eec095394eab3384b54bca4f78c01c86f9a Mon Sep 17 00:00:00 2001 From: Vieira Date: Tue, 5 Apr 2022 16:06:30 +0200 Subject: [PATCH] =?UTF-8?q?Me=20voy=20por=20la=20ma=C3=B1ana,=20Entregando?= =?UTF-8?q?=20el=20buen=20ron=20de=20Binks.=20Las=20olas=20bailan=20y=20yo?= =?UTF-8?q?=20cabalgo,=20Las=20olas=20en=20el=20viento.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APL2.1/TP9/Rectangle/Main.java | 7 +++++++ APL2.1/TP9/Rectangle/Rectangle.java | 0 APL2.1/TP9/Volume/Fenetre.java | 4 ---- APL2.1/TP9/playlist/Playlist.java | 6 +----- 4 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 APL2.1/TP9/Rectangle/Main.java create mode 100644 APL2.1/TP9/Rectangle/Rectangle.java diff --git a/APL2.1/TP9/Rectangle/Main.java b/APL2.1/TP9/Rectangle/Main.java new file mode 100644 index 0000000..30e7b26 --- /dev/null +++ b/APL2.1/TP9/Rectangle/Main.java @@ -0,0 +1,7 @@ +public class Main +{ + public static void main(String[] args) + { + Rectangle pl = new Rectangle(); + } +} diff --git a/APL2.1/TP9/Rectangle/Rectangle.java b/APL2.1/TP9/Rectangle/Rectangle.java new file mode 100644 index 0000000..e69de29 diff --git a/APL2.1/TP9/Volume/Fenetre.java b/APL2.1/TP9/Volume/Fenetre.java index 8417c08..40389ec 100644 --- a/APL2.1/TP9/Volume/Fenetre.java +++ b/APL2.1/TP9/Volume/Fenetre.java @@ -3,7 +3,6 @@ import java.awt.*; public class Fenetre extends JFrame { public Fenetre (){ - this.setLocation(100, 100); this.setResizable(false); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); @@ -14,8 +13,5 @@ public class Fenetre extends JFrame { panneau.setBackground (Color.BLACK); this.add(panneau, BorderLayout.CENTER); this.pack(); - - } - } \ No newline at end of file diff --git a/APL2.1/TP9/playlist/Playlist.java b/APL2.1/TP9/playlist/Playlist.java index d5cd3c9..6a269a0 100644 --- a/APL2.1/TP9/playlist/Playlist.java +++ b/APL2.1/TP9/playlist/Playlist.java @@ -6,23 +6,19 @@ public Playlist() { JFrame fenetre = new JFrame(); - fenetre.setSize(250, 500); fenetre.setLocation(100, 100); fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - GridLayout gestionnaire = new GridLayout(10, 1); fenetre.setLayout(gestionnaire); - + for (int i = 0; i < 10; i++) { JLabel lab = new JLabel("Morceau n°" + (i+1)); PlaylistListener listener = new PlaylistListener(lab); lab.addMouseListener(listener); - fenetre.add(lab); } - fenetre.setVisible(true); } }