début TP 02-09

This commit is contained in:
JunkJumper
2020-09-02 13:52:41 +02:00
parent 64306a29c2
commit 47375d5a19
8 changed files with 51 additions and 0 deletions

5
src/TP1/Factorielle.java Normal file
View File

@@ -0,0 +1,5 @@
package TP1;
public class Factorielle {
}

22
src/TP1/FenetreG.java Normal file
View 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();
}
}