Le rond vert ne s affiche pas
public class PartieEchec extends JFrame{
public PartieEchec(){
super();
JButton bouton1= new JButton("Joueur" );
getContentPane().setLayout(null);
bouton1.setBounds(31,35,81,39);
getContentPane().add(bouton1);
/*JButton bouton2= new JButton("Partie" );
getContentPane().setLayout(null);
bouton2.setBounds(33,97,83,41);
getContentPane().add(bouton2);*/
setSize(200,301);
setVisible(true);
}
public void paint(Graphics g){
//int couleur = 1;
super.paint(g);
g.setColor(Color.green);
/*if(couleur==1){
g.setColor(Color.yellow);
}else{
g.setColor(Color.blue);
}*/
g.fillOval(110, 115, 81, 93);
}
}