update
This commit is contained in:
10
DEV.3.2/TP/TP3-Listes/1.Luminance/Dessin.java
Normal file
10
DEV.3.2/TP/TP3-Listes/1.Luminance/Dessin.java
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
public class Dessin extends JPanel {
|
||||||
|
public Dessin() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void paintComponent(Graphics g) {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -5,8 +5,19 @@ public class Fenetre extends JFrame {
|
|||||||
|
|
||||||
public Fenetre() {
|
public Fenetre() {
|
||||||
super("Luminance");
|
super("Luminance");
|
||||||
|
|
||||||
this.setSize(300, 100);
|
this.setSize(300, 100);
|
||||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
this.setLocationRelativeTo(null);
|
this.setLocationRelativeTo(null);
|
||||||
|
this.setLayout(new GridBagLayout());
|
||||||
|
this.setBackgrund(Color.WHITE);
|
||||||
|
GridBagConstraints contraintes = new GridBagConstraints();
|
||||||
|
|
||||||
|
contraintes.gridx = 1;
|
||||||
|
contraintes.gridy = 1;
|
||||||
|
|
||||||
|
|
||||||
|
this.setVisible(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
public class Luminance {
|
||||||
|
|
||||||
|
private ArrayList<Color> couleurs;
|
||||||
|
private List listeDePolygones;
|
||||||
|
|
||||||
|
public Luminance() {
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
public class Main {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
Fenetre fenetre = new Fenetre();
|
||||||
|
fenetre.setVisible(true);
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user