APL/APL2.1/TP6/Sautoir/Sablier.java

14 lines
424 B
Java
Raw Normal View History

2022-02-14 11:02:04 +01:00
import javax.swing.*;
import java.awt.*;
public class Sablier {
public static void main(String[] args) {
JFrame fenetre = new JFrame();
2022-02-14 16:11:04 +01:00
fenetre.setSize(260, 260);
2022-02-14 11:02:04 +01:00
fenetre.setLocation(100, 100);
2022-02-14 16:11:04 +01:00
fenetre.setResizable(false);
2022-02-14 11:02:04 +01:00
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Paintsablier draw = new Paintsablier();
fenetre.add(draw, BorderLayout.CENTER);
fenetre.setVisible(true);
}
}