19 lines
441 B
Java
19 lines
441 B
Java
![]() |
import java.awt.*;
|
||
|
import javax.swing.*;
|
||
|
|
||
|
public class GFenetre extends JFrame {
|
||
|
|
||
|
public GFenetre() {
|
||
|
super("Galerie");
|
||
|
this.setSize(1000, 600);
|
||
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||
|
this.setLayout(new GridLayout(1,1));
|
||
|
|
||
|
JLabel imgJLabel = new JLabel(new ImageIcon("MICHEL.gif"));
|
||
|
this.add(imgJLabel, BorderLayout.CENTER);
|
||
|
|
||
|
this.add(imgJLabel);
|
||
|
this.addMouseListener(new GestionSouris(imgJLabel ,this));
|
||
|
|
||
|
}
|
||
|
}
|