update
This commit is contained in:
BIN
DEV.2.1/TP/TP9-Event..suite/1./Mafenetre.class
Normal file
BIN
DEV.2.1/TP/TP9-Event..suite/1./Mafenetre.class
Normal file
Binary file not shown.
15
DEV.2.1/TP/TP9-Event..suite/1./Mafenetre.java
Normal file
15
DEV.2.1/TP/TP9-Event..suite/1./Mafenetre.java
Normal 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();
|
||||
}
|
||||
|
||||
}
|
BIN
DEV.2.1/TP/TP9-Event..suite/1./MainVolume.class
Normal file
BIN
DEV.2.1/TP/TP9-Event..suite/1./MainVolume.class
Normal file
Binary file not shown.
10
DEV.2.1/TP/TP9-Event..suite/1./MainVolume.java
Normal file
10
DEV.2.1/TP/TP9-Event..suite/1./MainVolume.java
Normal 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);
|
||||
|
||||
}
|
||||
}
|
BIN
DEV.2.1/TP/TP9-Event..suite/1./MouseWheel.class
Normal file
BIN
DEV.2.1/TP/TP9-Event..suite/1./MouseWheel.class
Normal file
Binary file not shown.
16
DEV.2.1/TP/TP9-Event..suite/1./MouseWheel.java
Normal file
16
DEV.2.1/TP/TP9-Event..suite/1./MouseWheel.java
Normal 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) {
|
||||
|
||||
}
|
||||
|
||||
}
|
BIN
DEV.2.1/TP/TP9-Event..suite/1./Volume.class
Normal file
BIN
DEV.2.1/TP/TP9-Event..suite/1./Volume.class
Normal file
Binary file not shown.
21
DEV.2.1/TP/TP9-Event..suite/1./Volume.java
Normal file
21
DEV.2.1/TP/TP9-Event..suite/1./Volume.java
Normal 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);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user