26 lines
537 B
Java
26 lines
537 B
Java
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);
|
|
|
|
|
|
GridLayout gestionnaire = new GridLayout(5, 5);
|
|
frame.setLayout(gestionnaire);
|
|
|
|
|
|
for(int i = 0; i < 5; i ++){
|
|
for(int j= 0; j< 5; j++){
|
|
frame.add(new Sautoir());
|
|
}
|
|
|
|
}
|
|
|
|
|
|
frame.setSize(500,500);
|
|
frame.setLocation(500,250);
|
|
frame.setVisible(true);
|
|
}
|
|
} |