flut d'octet
This commit is contained in:
23
DEV2.1/CM1/Declinaisons.java
Normal file
23
DEV2.1/CM1/Declinaisons.java
Normal file
@@ -0,0 +1,23 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
import java.awt.Color;
|
||||
|
||||
public class Declinaisons {
|
||||
public static void main(String[] args) {
|
||||
JFrame fenetre = new JFrame();
|
||||
fenetre.setSize(500, 500);
|
||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
GridLayout gestionnaire = new GridLayout(2, 2);
|
||||
gestionnaire.setVgap(-15);
|
||||
fenetre.setLayout(gestionnaire);
|
||||
Partie part1 = new Partie(Color.CYAN,Color.MAGENTA);
|
||||
fenetre.add(part1);
|
||||
Partie part2 = new Partie(Color.MAGENTA,Color.CYAN);
|
||||
fenetre.add(part2);
|
||||
Partie part3 = new Partie(Color.PINK,Color.YELLOW);
|
||||
fenetre.add(part3);
|
||||
Partie part4 = new Partie(Color.YELLOW,Color.BLUE);
|
||||
fenetre.add(part4);
|
||||
fenetre.setVisible(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user