APL/APL2.1/Controle Machine/horville_apl21/Fermeture/Fermeture.java

18 lines
496 B
Java
Raw Normal View History

2022-06-01 12:19:24 +02:00
//HORVILLE Ewen Groupe N°4
import java.awt.*;
import javax.swing.*;
public class Fermeture {
public static void main(String[] args) {
JFrame f = new JFrame("Fermeture");
f.setLocation(150, 150);
f.setSize(500, 500);
f.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
f.addWindowListener(new FermetureListener());
f.setVisible(true);
TileBackground tb = new TileBackground(100, "./tuile.jpg");
f.add(tb);
}
}