TP
This commit is contained in:
12
DEV2.1/TP13/02_Image/Fenetre.java
Normal file
12
DEV2.1/TP13/02_Image/Fenetre.java
Normal file
@@ -0,0 +1,12 @@
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class Fenetre extends JFrame {
|
||||
public Fenetre() {
|
||||
this.setSize(32, 35);
|
||||
this.setLocation(100, 100);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
this.setLayout(new GridLayout(1, 1));
|
||||
this.add(new Image());
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user