Commit e7865f3e authored by Baptiste Fournier's avatar Baptiste Fournier

working when image path is specified [Working]

parent 9433a193
......@@ -19,6 +19,8 @@ public class MaFenetre extends JFrame implements KeyListener{
this.add(afficheur);
this.addKeyListener(this);
controller.newImage("logo-CS-blanc.png");
Dimension preferredSize = new Dimension(1000,1000);
this.setPreferredSize(preferredSize);
this.setTitle("Graphisme avec Swing");
......
......@@ -6,7 +6,7 @@ import java.awt.*;
public class MaCouleur {
Color objColor;
public MaCouleur() {
objColor = Color.white;
objColor = Color.red;
}
public void changeColor(Color newcolor){
objColor = newcolor;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment