This commit is contained in:
Emmanuel Srivastava
2025-02-13 15:30:47 +01:00
parent 1cf9b2ca57
commit 645cf79354
4 changed files with 31 additions and 12 deletions

View File

@@ -29,6 +29,11 @@ public class Formes extends JComponent {
secondPinceau.drawImage(this.img, 180,10, this);
secondPinceau.drawLine(0,0,90,100);
secondPinceau.drawLine(100,0,90,100);
}
}

View File

@@ -1,16 +1,17 @@
import javax.swing.*;
import java.awt.*;
public class MainFormes{
public static void main(String[] args){
JFrame frame = new JFrame("Formes");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Formes truc = new Formes();
frame.add(truc);
frame.setSize(500,500);
frame.setLocation(500,250);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Formes truc = new Formes();
frame.add(truc);
frame.setSize(500,500);
frame.setLocation(500,250);
frame.setVisible(true);
}
}