update
This commit is contained in:
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