big update
This commit is contained in:
19
DEV.3.1/TP/TP2/Galerie.1/1./GFenetre.java
Normal file
19
DEV.3.1/TP/TP2/Galerie.1/1./GFenetre.java
Normal file
@@ -0,0 +1,19 @@
|
||||
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));
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user