TP3
This commit is contained in:
15
DEV2.1/TP14/02_Couleurs/Fenetre.java
Normal file
15
DEV2.1/TP14/02_Couleurs/Fenetre.java
Normal file
@@ -0,0 +1,15 @@
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class Fenetre extends JFrame {
|
||||
|
||||
public Fenetre() {
|
||||
this.setSize(200, 200);
|
||||
this.setLocation(100, 100);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
this.setLayout(new GridLayout(1, 1));
|
||||
Color couleur1 = // TODO
|
||||
Color couleur2 = // TODO
|
||||
this.add(new Composant(couleur1, couleur2));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user