TP Exceptions
This commit is contained in:
13
DEV2.1/TP09/03_Rectangle/Fenetre.java
Normal file
13
DEV2.1/TP09/03_Rectangle/Fenetre.java
Normal file
@@ -0,0 +1,13 @@
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class Fenetre extends JFrame {
|
||||
public Fenetre() {
|
||||
this.setSize(800, 500);
|
||||
this.setLocation(100, 100);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
GestionSouris clicSouris = new GestionSouris(this);
|
||||
this.addMouseListener(clicSouris);
|
||||
this.addMouseMotionListener(new GestionMouvementSouris(this, clicSouris));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user