DEV_BUT1/DEV2.1/TP09/Disques.java
2023-04-04 14:03:16 +02:00

16 lines
424 B
Java

public class Disques extends JComponent{
private int hauteur = 50;
Disques(){
this.a = getvalue();
}
@Override
protected void paintComponent(Graphics pinceau){
Graphics secondPinceau = pinceau.create();
if (this.isOpaque()){
secondPinceau.setColor(this.getBackground());
secondPinceau.fillRect(0, 0, this.getWidth(), this.getHeight());
}
for(int i <0; i <secondPinceau.setColor(Color.YELLOW);
}
}