DEV_BUT1/DEV2.1/TP06/Exo2/Sautoir.java

17 lines
412 B
Java
Raw Normal View History

2023-04-04 14:03:16 +02:00
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);
Sablier cadre = new Sablier();
for (int i=0; i<24; i++){
fenetre.add(cadre);
}
fenetre.setVisible(true);
}
}