18 lines
445 B
Java
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);
|
||
|
|
||
|
}
|
||
|
}
|