This commit is contained in:
Emmanuel Srivastava
2025-03-10 17:31:32 +01:00
12 changed files with 62 additions and 109 deletions

Binary file not shown.

View File

@@ -0,0 +1,15 @@
import javax.swing.*;
import java.awt.*;
public class Mafenetre extends JFrame {
public Mafenetre() {
super("Volume");
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setSize(697,156);
this.setLocation(500,250);
Volume instance = new Volume();
}
}

Binary file not shown.

View File

@@ -0,0 +1,10 @@
import javax.swing.*;
import java.awt.*;
public class MainVolume {
public static void main(String[] args) {
Mafenetre fenetre = new Mafenetre();
fenetre.setVisible(true);
}
}

Binary file not shown.

View File

@@ -0,0 +1,16 @@
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class MouseWheel implements MouseWheelListener {
public MouseWheel() {
super();
}
@Override
public void mouseWheelMoved(MouseWheelEvent evenement) {
}
}

Binary file not shown.

View File

@@ -0,0 +1,21 @@
import javax.swing.*;
import java.awt.*;
public class Volume extends JComponent {
public Volume() {
super();
}
@Override
protected void paintComponent(Graphics pinceau) {
Graphics secondPinceau = pinceau.create();
this.setColor(this.getForeground());
this.setBackground(new Color(255,30,255));
this.setColor(Color.GRAY);
this.fillOval(10, 70, 100, 100);
}
}