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

22 lines
457 B
Java

import javax.swing.*;
import java.awt.*;
public class Formes{
public static void main(String[] args) {
JFrame fenetre = new JFrame();
fenetre.setSize(1920, 1080);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GridLayout orga = new GridLayout(2,2);
fenetre.setLayout(orga);
Carre lesformes = new Carre();
fenetre.add(lesformes, BorderLayout.CENTER);
fenetre.setVisible(true);
}
}