17 lines
412 B
Java
17 lines
412 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);
|
|
Sablier cadre = new Sablier();
|
|
for (int i=0; i<24; i++){
|
|
fenetre.add(cadre);
|
|
}
|
|
fenetre.setVisible(true);
|
|
|
|
}
|
|
} |