Compare commits
3 Commits
016441867c
...
8773a2093d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8773a2093d | ||
|
|
19e02c8747 | ||
|
|
c92acbe2e7 |
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) {
|
||||
|
||||
}
|
||||
}
|
||||
23
DEV.3.2/TP/TP3-Listes/1.Luminance/Fenetre.java
Normal file
23
DEV.3.2/TP/TP3-Listes/1.Luminance/Fenetre.java
Normal file
@@ -0,0 +1,23 @@
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class Fenetre extends JFrame {
|
||||
|
||||
public Fenetre() {
|
||||
super("Luminance");
|
||||
|
||||
this.setSize(300, 100);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
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