DEV_BUT1/DEV2.1/CTRLBLANC/Exo4/lexodugayla/Tuile2.java

14 lines
373 B
Java
Raw Normal View History

2023-04-04 14:03:16 +02:00
import javax.swing.*;
public class Tuile2 {
public static void main(String[] args) {
JFrame f = new JFrame("Tuile");
f.setLocation(150, 150);
f.setSize(500, 500);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.setVisible(true);
TileBackground tb = new TileBackground(150, "./tuile.jpg");
f.add(tb);
}
}