From c1a49f7c8fd4d69968498336b0fdfc64794bd25a Mon Sep 17 00:00:00 2001 From: Vieira Date: Mon, 4 Apr 2022 15:31:17 +0200 Subject: [PATCH] regine trabajo --- APL2.1/TP9/Volume/Fenetre.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 APL2.1/TP9/Volume/Fenetre.java diff --git a/APL2.1/TP9/Volume/Fenetre.java b/APL2.1/TP9/Volume/Fenetre.java new file mode 100644 index 0000000..14f35eb --- /dev/null +++ b/APL2.1/TP9/Volume/Fenetre.java @@ -0,0 +1,21 @@ +import javax.swing.*; +import java.awt.*; + +public class Fenetre extends JFrame { + public Fenetre (){ + + this.setLocation(100, 100); + this.setResizable(false); + this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + Paintvolume draw = new Paintvolume(); + JPanel panneau = new JPanel(); + panneau.addMouseWheelListener(new Souris(draw)); + panneau.add(draw); + panneau.setBackground (Color.BLUE); + this.add(panneau, BorderLayout.CENTER); + this.pack(); + + + } + + } \ No newline at end of file