16 lines
424 B
Java
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);
|
||
|
|
||
|
}
|
||
|
}
|