2025-02-11 14:59:41 +01:00
|
|
|
import javax.swing.*;
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
public class MainSautoir {
|
|
|
|
public static void main(String[] args){
|
|
|
|
JFrame frame = new JFrame("Sautoir");
|
|
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
2025-02-13 15:30:47 +01:00
|
|
|
|
|
|
|
|
2025-02-13 15:37:56 +01:00
|
|
|
GridLayout gestionnaire = new GridLayout(5, 5);
|
2025-02-13 15:30:47 +01:00
|
|
|
frame.setLayout(gestionnaire);
|
|
|
|
|
2025-02-11 14:59:41 +01:00
|
|
|
|
2025-02-13 15:37:56 +01:00
|
|
|
for(int i = 0; i < 5; i ++){
|
|
|
|
for(int j= 0; j< 5; j++){
|
|
|
|
frame.add(new Sautoir());
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
2025-02-11 14:59:41 +01:00
|
|
|
|
|
|
|
frame.setSize(500,500);
|
|
|
|
frame.setLocation(500,250);
|
|
|
|
frame.setVisible(true);
|
|
|
|
}
|
|
|
|
}
|