DEV_BUT1/DEV2.1/TP06/Sautoir.java
2023-04-04 14:03:16 +02:00

18 lines
445 B
Java

import javax.swing.*;
import java.awt.*;
public class Sautoir{
public static void main(String[] args) {
JFrame fenetre = new JFrame();
fenetre.setSize(800, 800);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GridLayout grille = new GridLayout(5,5);
fenetre.setLayout(grille);
Sablier cadre = new Sablier();
for (int i=0; i<24; i++){
fenetre.add(cadre);
}
fenetre.setVisible(true);
}
}