début TP 02-09
This commit is contained in:
5
src/TP1/Factorielle.java
Normal file
5
src/TP1/Factorielle.java
Normal file
@@ -0,0 +1,5 @@
|
||||
package TP1;
|
||||
|
||||
public class Factorielle {
|
||||
|
||||
}
|
22
src/TP1/FenetreG.java
Normal file
22
src/TP1/FenetreG.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package TP1;
|
||||
|
||||
import java.awt.Graphics;
|
||||
import java.util.Random;
|
||||
|
||||
import javax.swing.JFrame;
|
||||
|
||||
public class FenetreG extends JFrame {
|
||||
static Random generator = new Random() ;
|
||||
|
||||
public void paint(Graphics g) {
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
FenetreG fenetre = new FenetreG() ;
|
||||
fenetre.setDefaultCloseOperation(EXIT_ON_CLOSE) ;
|
||||
fenetre.setExtendedState(MAXIMIZED_BOTH) ;
|
||||
fenetre.setVisible(true) ;
|
||||
fenetre.triGraphique();
|
||||
fenetre.repaint();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user